Use ruby 2.x hash syntax

This commit is contained in:
Thibault Jouan
2014-04-01 10:48:18 +00:00
parent 712e9501a2
commit da96c4814a
52 changed files with 148 additions and 148 deletions

View File

@@ -8,7 +8,7 @@ feature 'Tracks' do
end
scenario 'shows track' do
track = FactoryGirl.create(:track, :name => 'Mega song')
track = FactoryGirl.create(:track, name: 'Mega song')
visit track_path(track)
@@ -19,7 +19,7 @@ feature 'Tracks' do
visit root_path
click_link 'Add a track'
fill_in 'Name', :with => 'Mega song'
fill_in 'Name', with: 'Mega song'
attach_file 'File', File.expand_path('spec/fixtures/test.mp3')
click_button 'Upload'