Update for latest RABL version:

* Fix controller specs to also render RABL views where needed.
This commit is contained in:
Thibault Jouan 2014-04-01 04:52:09 +00:00
parent edef2df77b
commit c1eaf98c02
2 changed files with 4 additions and 0 deletions

View File

@ -8,6 +8,8 @@ describe API::PlaylistsController do
end end
describe 'GET index' do describe 'GET index' do
render_views
before do before do
playlist_1 = Factory.create(:playlist, :name => 'Playlist 1') playlist_1 = Factory.create(:playlist, :name => 'Playlist 1')
playlist_2 = Factory.create(:playlist, :name => 'Playlist 2') playlist_2 = Factory.create(:playlist, :name => 'Playlist 2')

View File

@ -8,6 +8,8 @@ describe API::TracksController do
end end
describe 'GET index' do describe 'GET index' do
render_views
before do before do
Factory.create(:track_with_sound) Factory.create(:track_with_sound)
Factory.create(:track_with_sound) Factory.create(:track_with_sound)