lib/facemock/fb_graph/application.rb in facemock-0.0.6 vs lib/facemock/fb_graph/application.rb in facemock-0.0.7
- old
+ new
@@ -42,12 +42,10 @@
end
def test_user!(options={})
validate_and_raise_error
options.merge!({application_id: self.identifier})
- user = User.new(options)
- user.save!
- user
+ user = User.create!(options)
end
def test_users(options={})
validate_and_raise_error
TestUsers.new(self.identifier, options)