Update factory girl to last version
This commit is contained in:
@@ -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
|
||||
|
@@ -2,7 +2,7 @@ require 'spec_helper'
|
||||
|
||||
describe API::SessionsController do
|
||||
describe 'POST create' do
|
||||
let(:user) { Factory.create(:user) }
|
||||
let(:user) { FactoryGirl.create(:user) }
|
||||
|
||||
def do_create
|
||||
post :create, :format => :json, :session => {
|
||||
|
@@ -11,8 +11,8 @@ describe API::TracksController do
|
||||
render_views
|
||||
|
||||
before do
|
||||
Factory.create(:track_with_sound)
|
||||
Factory.create(:track_with_sound)
|
||||
FactoryGirl.create(:track_with_sound)
|
||||
FactoryGirl.create(:track_with_sound)
|
||||
end
|
||||
|
||||
def do_get
|
||||
|
Reference in New Issue
Block a user