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

@@ -1,7 +1,7 @@
require 'spec_helper'
feature 'API sign in' do
let(:user) { Factory.create(:user) }
let(:user) { FactoryGirl.create(:user) }
def do_create
post api_sessions_path, :format => :json, :session => {

View File

@@ -3,7 +3,7 @@ require 'spec_helper'
feature 'API cross origin request' do
include UserIntegrationHelpers
let(:user) { Factory.create(:user) }
let(:user) { FactoryGirl.create(:user) }
let(:origin) { 'http://origin.example/' }
background do

View File

@@ -8,7 +8,7 @@ feature 'API playlists' do
end
scenario 'creates playlist' do
playlist = Factory.attributes_for :playlist
playlist = FactoryGirl.attributes_for :playlist
post api_playlists_path,
:format => :json,

View File

@@ -8,8 +8,8 @@ feature 'API tracks' do
end
scenario 'lists tracks' do
track_1 = Factory.create(:track_with_sound, :name => 'Track 1')
track_2 = Factory.create(:track, :name => 'Track 2')
track_1 = FactoryGirl.create(:track_with_sound, :name => 'Track 1')
track_2 = FactoryGirl.create(:track, :name => 'Track 2')
get api_tracks_path, :format => :json