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

@@ -2,7 +2,7 @@ require 'spec_helper'
describe Sound do
subject { sound }
let(:sound) { Factory.build(:sound) }
let(:sound) { FactoryGirl.build(:sound) }
it { should be_valid }
it { should belong_to :track }
@@ -20,7 +20,7 @@ describe Sound do
end
describe '#file=' do
let (:file) { Factory.attributes_for(:sound)[:file] }
let (:file) { FactoryGirl.attributes_for(:sound)[:file] }
it 'saves the file SHA256 digest' do
sound.sha256.should == Digest::SHA256.file(file.path).hexdigest