Fix coding standards in specs

This commit is contained in:
Thibault Jouan
2014-04-01 19:14:11 +00:00
parent e6f6475705
commit 2acf0371b5
10 changed files with 16 additions and 17 deletions

View File

@@ -62,7 +62,7 @@ describe PlaylistsController do
end
describe 'PUT update' do
let (:playlist) { FactoryGirl.create(:playlist) }
let(:playlist) { FactoryGirl.create(:playlist) }
def do_update
put :update, id: playlist.id.to_s, playlist: { name: 'Rock' }
@@ -71,7 +71,7 @@ describe PlaylistsController do
context 'whith valid params' do
it 'updates the playlist' do
expect_any_instance_of(Playlist)
.to receive(:update_attributes).with({'name' => 'Rock'})
.to receive(:update_attributes).with('name' => 'Rock')
do_update
end