Factory.build saves users
This commit is contained in:
parent
f700eb537a
commit
6c94d40bd4
1 changed files with 9 additions and 0 deletions
|
|
@ -11,6 +11,15 @@ describe 'making sure the spec runner works' do
|
||||||
loaded_user.person.owner_id.should == user.id
|
loaded_user.person.owner_id.should == user.id
|
||||||
end
|
end
|
||||||
|
|
||||||
|
describe 'factories' do
|
||||||
|
describe 'build' do
|
||||||
|
it 'does not save a built user' do
|
||||||
|
pending "This problem is bizarre and needs fixing"
|
||||||
|
Factory.build(:user).persisted?.should be_false
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
describe '#friend_users' do
|
describe '#friend_users' do
|
||||||
before do
|
before do
|
||||||
@user1 = Factory.create(:user)
|
@user1 = Factory.create(:user)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue