I am using RSpec for unit and functional testing on a project. I have
however found the (experimental) RSpec stories to be un-intuitive in
The RSpec plugins seems to disable the standard Rails Tests
This is certainly not the intent. I've got projects which have both
Rails integration tests and RSpec specs and they play together
perfectly well. You just can't run them together in one process.
=> runs specs and tests (in two separate processes)
=> runs only tests
=> runs only specs
What is leading you to believe that it is disabled?
Thanks for the reply David.
David Chelimsky wrote:
> This is certainly not the intent. I've got projects which have both
> Rails integration tests and RSpec specs and they play together
> perfectly well.
I thought this was the case, but a codebase I'd just taken over wasn't
> What is leading you to believe that it is disabled?
All the test tasks were running with RSpec rather than Test:unit, I
eventually found the offending line in rspec plugin
require 'spec/test' if Object.const_defined?(:Test)
I grep'd the rspec tree for this and couldn't find it. Would you mind
taking a look in vendor/plugins/rspec/lib/spec/version.rb and tell me
the version and revision numbers?
Also, what line in what file?
I just want to make sure this isn't a problem w/ the distribution (my
suspicion is it was added by the person from whom you inherited the
code, but I want to make sure).
Commented it out, and all is working as it should now.
It's possible that the plugins are from a previous trunk revision. Can
you update to the current trunk and see if everything works OK?