Use only new hash syntax
This commit is contained in:
parent
3901973fd6
commit
5289f41eb5
72 changed files with 179 additions and 181 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue