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

@@ -18,11 +18,11 @@ describe 'playlists/new' do
end
it 'renders a text field with a label for the playlists name' do
playlist.stub(:name => 'Electro')
playlist.stub(name: 'Electro')
render
rendered.should have_selector(
"input[type=text][name='playlist[name]'][value=Electro]"
)
rendered.should have_selector("label[for=playlist_name]", :text => 'Name')
rendered.should have_selector("label[for=playlist_name]", text: 'Name')
end
end