Guest User

Untitled

a guest
Oct 28th, 2017
376
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. ##User.create!(Factory(:user))
  2. ruby-1.9.2-p180 :001 > User.create!(Factory(:user))
  3. NameError: uninitialized constant Object::User
  4.  
  5.  
  6. ##Factory(:user)
  7. NoMethodError: undefined method `Factory' for #<Object:0x000000020ab750>
  8. from /home/kiba/.rvm/gems/ruby-1.9.2-p180/gems/rspec-expectations-2.6.0/lib/rspec/matchers/method_missing.rb:9:in `method_missing'\
  9.  
  10. ## User.create!({:username => "kira", :password => "foobar", :password_confirmation => "foobar", :email => "hello@example.com"})
  11.  
  12.  
  13. NameError: uninitialized constant Object::User
  14. from (irb):1:in `block in <top (required)>'
Add Comment
Please, Sign In to add comment