Skip to content

Instantly share code, notes, and snippets.

@beckyconning
Created August 9, 2012 20:26
Show Gist options
  • Save beckyconning/3307812 to your computer and use it in GitHub Desktop.
Save beckyconning/3307812 to your computer and use it in GitHub Desktop.
F..
Failures:
1) MessagesController POST create creates a new message
Failure/Error: post :create, :message => {
You have a nil object when you didn't expect it!
You might have expected an instance of ActiveRecord::Base.
The error occurred while evaluating nil.save
# ./app/controllers/messages_controller.rb:4:in `create'
# ./spec/controllers/messages_controller_spec.rb:9
Finished in 0.11847 seconds
3 examples, 1 failure
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment