Skip to content

Instantly share code, notes, and snippets.

@nbryan
Created September 9, 2009 17:10
Show Gist options
  • Save nbryan/183895 to your computer and use it in GitHub Desktop.
Save nbryan/183895 to your computer and use it in GitHub Desktop.
20) Error:
test: A user sentinel instance should know when it's destroyable. (UserSentinelTest):
NoMethodError: undefined method `user_credentials' for #<UserMailer:0x103532060>
app/observers/user_observer.rb:3:in `after_create'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/observer.rb:185:in `notify_observers'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/observer.rb:184:in `each'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/observer.rb:184:in `notify_observers'
vendor/gems/thoughtbot-factory_girl-1.2.1/lib/factory_girl/proxy/create.rb:5:in `result'
vendor/gems/thoughtbot-factory_girl-1.2.1/lib/factory_girl/factory.rb:293:in `run'
vendor/gems/thoughtbot-factory_girl-1.2.1/lib/factory_girl/factory.rb:237:in `create'
vendor/gems/thoughtbot-factory_girl-1.2.1/lib/factory_girl/factory.rb:268:in `send'
vendor/gems/thoughtbot-factory_girl-1.2.1/lib/factory_girl/factory.rb:268:in `default_strategy'
vendor/gems/thoughtbot-factory_girl-1.2.1/lib/factory_girl.rb:20:in `Factory'
/test/unit/user_sentinel_test.rb:6:in `__bind_1252515704_496429'
vendor/gems/thoughtbot-shoulda-2.10.1/lib/shoulda/context.rb:253:in `call'
vendor/gems/thoughtbot-shoulda-2.10.1/lib/shoulda/context.rb:253:in `test: A user sentinel instance should know when it's destroyable. '
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment