[rspec-devel] [rspec-users] rspec_on_rails (trunk - r3070) works with Rails 2.0.1

Craig Demyanovich cdemyanovich at gmail.com
Sun Dec 9 10:09:03 EST 2007

On Dec 8, 2007 11:47 PM, James Deville <james.deville at gmail.com> wrote:

> I figured most of it out. The Spec::Rails stuff was something in the code
> which has been fixed by revision 3099. The test methods partially make
> sense. Since the test/unit code has been integrated, methods with test in
> them are automatically turned into specs. However, the test? method is in a
> lib file that isn't directly loaded into the specs. It is a convenience
> method: def test?; RAILS_ENV=="test";end
> I don't know why this method is being included in my tests, every context
> has it as an example. Any ideas?

I have a couple ideas. If the lib file is on the load path, then maybe rspec
is searching it. Also, re: the name, maybe rspec and/or test::unit is
recognizing the method as a test because it begins with "test." Try renaming
the method.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/rspec-devel/attachments/20071209/0da05940/attachment.html 

More information about the rspec-devel mailing list