clean-up code

* Remove trailing whitespace
  * Converts hard-tabs into two-space soft-tabs
  * Remove consecutive blank lines
This commit is contained in:
Nihad Abbasov 2011-10-26 18:46:25 +05:00
parent f6a67fbad5
commit d62200cad4
112 changed files with 1408 additions and 1437 deletions

View file

@ -1,12 +1,12 @@
require 'spec_helper'
describe "Issues" do
before do
before do
login_as :user
end
describe "GET /keys" do
before do
before do
@key = Factory :key, :user => @user
visit keys_path
end
@ -15,8 +15,8 @@ describe "Issues" do
it { should have_content(@key.title) }
describe "Destroy" do
it "should remove entry" do
describe "Destroy" do
it "should remove entry" do
expect {
click_link "destroy_key_#{@key.id}"
}.to change { @user.keys.count }.by(-1)
@ -24,17 +24,17 @@ describe "Issues" do
end
end
describe "New key", :js => true do
before do
describe "New key", :js => true do
before do
visit keys_path
click_link "Add new"
end
it "should open new key popup" do
it "should open new key popup" do
page.should have_content("Add new public key")
end
describe "fill in" do
describe "fill in" do
before do
fill_in "key_title", :with => "laptop"
fill_in "key_key", :with => "publickey234="
@ -42,7 +42,7 @@ describe "Issues" do
it { expect { click_button "Save" }.to change {Key.count}.by(1) }
it "should add new key to table" do
it "should add new key to table" do
click_button "Save"
page.should_not have_content("Add new public key")