Skip to content

Instantly share code, notes, and snippets.

@tokumine
Created November 10, 2011 15:06
Show Gist options
  • Save tokumine/1355060 to your computer and use it in GitHub Desktop.
Save tokumine/1355060 to your computer and use it in GitHub Desktop.
Sequel rails rspec
If you're running sequel models and rspec, make sure you run rake db:test:prepare before you execute your tests otherwise you'll get cryptic
NoMethodError:
undefined method
on all your model attributes
Seems obvious once you know, but terrible error message.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment