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

@ -5,7 +5,7 @@ describe "User Dashboard" do
describe "GET /" do
before do
@project = Factory :project, :owner => @user
@project = Factory :project, owner: @user
@project.add_access(@user, :read)
visit dashboard_path
end
@ -13,14 +13,14 @@ describe "User Dashboard" do
it "should render projects atom feed via private token" do
logout
visit dashboard_path(:atom, :private_token => @user.private_token)
visit dashboard_path(:atom, private_token: @user.private_token)
page.body.should have_selector("feed title")
end
it "should not render projects page via private token" do
logout
visit dashboard_path(:private_token => @user.private_token)
visit dashboard_path(private_token: @user.private_token)
current_path.should == new_user_session_path
end
end