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

@@ -21,19 +21,19 @@ describe API::TracksController do
end
it 'lists all tracks' do
do_get.should have(2).items
expect(do_get).to have(2).items
end
it 'lists tracks with their id' do
do_get.each { |p| p.should include 'id' }
do_get.each { |p| expect(p).to include 'id' }
end
it 'lists tracks with their name' do
do_get.each { |p| p.should include 'name' }
do_get.each { |p| expect(p).to include 'name' }
end
it 'lists tracks with sound URL' do
do_get.each { |p| p.should include 'sound_url' }
do_get.each { |p| expect(p).to include 'sound_url' }
end
end
end