Use ruby 2.x hash syntax
This commit is contained in:
@@ -8,7 +8,7 @@ feature 'Home page' do
|
||||
end
|
||||
|
||||
scenario 'displays playlists' do
|
||||
playlist = FactoryGirl.create(:playlist, :name => 'Electro')
|
||||
playlist = FactoryGirl.create(:playlist, name: 'Electro')
|
||||
|
||||
visit root_path
|
||||
|
||||
@@ -17,12 +17,12 @@ feature 'Home page' do
|
||||
|
||||
scenario 'displays last track added' do
|
||||
FactoryGirl.create(:track,
|
||||
:name => 'Mega song 1',
|
||||
:created_at => '2011-07-27 19:13:42'
|
||||
name: 'Mega song 1',
|
||||
created_at: '2011-07-27 19:13:42'
|
||||
)
|
||||
FactoryGirl.create(:track,
|
||||
:name => 'Mega song 2',
|
||||
:created_at => '2011-07-27 19:58:57'
|
||||
name: 'Mega song 2',
|
||||
created_at: '2011-07-27 19:58:57'
|
||||
)
|
||||
|
||||
visit root_path
|
||||
|
Reference in New Issue
Block a user