Update factory girl to last version

This commit is contained in:
Thibault Jouan
2014-04-01 05:04:27 +00:00
parent d2b332215e
commit eda2f3fbee
28 changed files with 56 additions and 56 deletions

View File

@@ -11,8 +11,8 @@ describe API::PlaylistsController do
render_views
before do
playlist_1 = Factory.create(:playlist, :name => 'Playlist 1')
playlist_2 = Factory.create(:playlist, :name => 'Playlist 2')
playlist_1 = FactoryGirl.create(:playlist, :name => 'Playlist 1')
playlist_2 = FactoryGirl.create(:playlist, :name => 'Playlist 2')
end
def do_get
@@ -37,7 +37,7 @@ describe API::PlaylistsController do
def do_create
post :create,
:format => :json,
:playlist => Factory.attributes_for(:playlist)
:playlist => FactoryGirl.attributes_for(:playlist)
end
it 'creates a new playlist for the current user' do