Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ##User.create!(Factory(:user))
- ruby-1.9.2-p180 :001 > User.create!(Factory(:user))
- NameError: uninitialized constant Object::User
- ##Factory(:user)
- NoMethodError: undefined method `Factory' for #<Object:0x000000020ab750>
- 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'\
- ## User.create!({:username => "kira", :password => "foobar", :password_confirmation => "foobar", :email => "hello@example.com"})
- NameError: uninitialized constant Object::User
- from (irb):1:in `block in <top (required)>'
Add Comment
Please, Sign In to add comment