Update specs to new rspec syntax

This commit is contained in:
Thibault Jouan
2014-04-01 18:15:44 +00:00
parent 99d106cf36
commit 4cef7aeab9
32 changed files with 173 additions and 179 deletions

View File

@@ -11,14 +11,14 @@ describe HomeController do
it 'assigns all playlists as @playlists' do
playlist = FactoryGirl.create(:playlist)
get :index
assigns[:playlists].should == [playlist]
expect(assigns[:playlists]).to eq [playlist]
end
it 'assigns latest tracks as @tracks' do
track1 = FactoryGirl.create(:track, created_at: '2011-07-27 19:13:42')
track2 = FactoryGirl.create(:track, created_at: '2011-07-27 19:58:57')
get :index
assigns[:tracks].should == Track.latest
expect(assigns[:tracks]).to eq Track.latest
end
end
end