Use only new hash syntax

This commit is contained in:
Artem Chernikov 2014-07-21 14:49:05 +02:00
parent 3901973fd6
commit 5289f41eb5
72 changed files with 179 additions and 181 deletions

View file

@ -7,7 +7,7 @@ RSpec.configure do |config|
DatabaseCleaner.strategy = :transaction
end
config.before(:each, :js => true) do
config.before(:each, js: true) do
DatabaseCleaner.strategy = :truncation
end

View file

@ -3,7 +3,7 @@ module LoginMacros
Warden.test_mode!
def sign_in(user)
login_as(user, :scope => :user)
login_as(user, scope: :user)
end
def sign_out

View file

@ -5,6 +5,6 @@ describe 'home/index' do
allow(view).to receive(:date_string).and_return("January 17 - 21 2014")
assign(:current, [create(:conference), create(:conference)])
render
expect(view).to render_template(:partial => "_conference_details", :count => 2)
expect(view).to render_template(partial: "_conference_details", count: 2)
end
end