We'll respond shortly.
In Rspec you can stub a class method in a module using Module::Class:Stubs(’method’) similar to Mocha syntax
stub! does not work for Module::Class:method in rspec
If someone knows of a way to run describes in order in rspec test, please let me know
“Finder conditions in rails?”
find(:all, :conditions => 'flag is null') where flag is boolean
This would work in tests but not in development mode. They tried changing it to
find(:all, :conditions => 'flag != 1') where flag is boolean
and this would work in dev mode but not in test.
Try having boolean values in database as not null and never pass null to boolean.
Make sure fixtures and development data have similar data sets.
“Selenium tests failing to load associations”
Check if you
RAILS_ENV is set to test while running Selenium. There has been some cases of weird rails behavior running tests when
RAILS_ENV is set to development