Closed turadg closed 13 years ago
From the README:
"The application does not include tests (RSpec or otherwise). It relies on Devise and Mongoid which include extensive tests. This application is intended to be a basis for your own customized application and (in most cases) you will be writing your own tests for your required behavior."
Thanks for including the quote. I'm quite new to Rails and hadn't even thought about testing at the time I read the README.
While the project doesn't include tests, from the above text I wouldn't expect that it woudl cause the tests suite to throw an error. I did write my own test, following the canonical Rails guide, and that's when I encountered this error.
The README also says no support is offered for this project, so I understand if you choose not to make the test command work. In that case, my suggestion is that the above portion of the README indicate that even user-written tests will fail without some additional work and include the known problem with the missing "fixtures" method.
I'm in a similar boat and agree with turadg. It's frustrating when your "out of the box" tests don't pass. The readme should tell people that at the least.
Does anyone know why that error happens? I'm writing tests for a gem and got to the exact same error (undefined method `fixtures' for ActiveSupport::TestCase:Class (NoMethodError)), and apparently there's not a lot of references to it on the web AT ALL...
Just wanted to point out that this project (fortuity / rails3-mongoid-devise) has been replaced by a newer version at https://github.com/RailsApps/rails3-mongoid-devise. The new version is actively maintained and has ongoing participation by contributors. You may get the help you need there.
-- Daniel
@fortuity thanks for the suggestion.
With a fresh clone of this project there's some problem in the testing framework. Running,
Produces this error: