Fully embrace Ruby 1.9 hash syntax

Didn't bother with files in db/, config/, or features/
This commit is contained in:
Robert Speicher 2012-08-10 18:07:50 -04:00
parent 1413c23c50
commit 7754189187
257 changed files with 1449 additions and 1449 deletions

View file

@ -10,7 +10,7 @@ describe "Projects", "DeployKeys" do
describe "GET /keys" do
before do
@key = Factory :key, :project => project
@key = Factory :key, project: project
visit project_deploy_keys_path(project)
end
@ -41,8 +41,8 @@ describe "Projects", "DeployKeys" do
describe "fill in" do
before do
fill_in "key_title", :with => "laptop"
fill_in "key_key", :with => "publickey234="
fill_in "key_title", with: "laptop"
fill_in "key_key", with: "publickey234="
end
it { expect { click_button "Save" }.to change {Key.count}.by(1) }
@ -57,7 +57,7 @@ describe "Projects", "DeployKeys" do
describe "Show page" do
before do
@key = Factory :key, :project => project
@key = Factory :key, project: project
visit project_deploy_key_path(project, @key)
end