[rspec-devel] RSpec stepping on Test::Unit?

Lee Pope leepope at gmail.com
Fri Dec 8 02:23:09 EST 2006


Hi all, and thanks for such a great tool!

I have some new functionality that I'm adding to an existing rails app. I
wanted to start migrating my tests to RSpec, so i installed the gem and
rails plugin (versions match).

My specs all run, (very well, thank you), but my existing unit, funtional
and integration tests, while they seem to be running, produce no output. If
i remove the plugin from the vendor/plugin directory, the output from the
tests is normal. Here is a sample of the command line output, in case it is
helpful:

lee at manso:~/projects/rails/LP-message-spam$ rake
(in /home/lee/projects/rails/LP-message-spam)
/usr/bin/ruby1.8 -Ilib:test
"/usr/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake/rake_test_loader.rb"
"test/unit/region_test.rb" "test/unit/trip_test.rb" "test/unit/user_test.rb"
"test/unit/itin_test.rb" "test/unit/region_interest_test.rb"
"test/unit/region_type_test.rb" "test/unit/session_test.rb"
"test/unit/contact_log_test.rb"
/usr/bin/ruby1.8 -Ilib:test
"/usr/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake/rake_test_loader.rb"
"test/functional/contact_log_controller_test.rb"
"test/functional/user_controller_test.rb"
"test/functional/visit_controller_test.rb"
"test/functional/files_controller_test.rb"
"test/functional/application_controller_test.rb"
/usr/bin/ruby1.8 -Ilib:test
"/usr/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake/rake_test_loader.rb"
"test/integration/application_test.rb" "test/integration/download_test.rb"
"test/integration/catalog_test.rb" "test/integration/newsletter_test.rb"
/usr/bin/ruby1.8 -I"/usr/lib/ruby/gems/1.8/gems/rspec-0.7.4/lib"
"/usr/lib/ruby/gems/1.8/gems/rspec-0.7.4/bin/spec"
"spec/controllers/auth_spec.rb"
"spec/controllers/application_controller_spec.rb" -c -f s

Setup and DSL:
- set_auth_cookie should drop a cookie for the returning user

New User:
- should not have a cookie
- should not be able to use email-bypass

Returning User:
- should have a cookie
- should be in the session after their first request

Anonymous User
- should not have a cookie when they arrive
- should get a cookie when they give their email

Authentication:

Finished in 0.923852 seconds

7 specifications, 0 failures

I have searched this list, and the rails list, to no avail.

Can anybody help me?

Thanks,

Lee
-- 

*********************************

All that is gold does not glitter.
Not all those who wander are lost.
The old who are strong do not whither.
Deep roots are not touched by the frost.
                     -- J.R.R. Tolkein
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/rspec-devel/attachments/20061207/d3f102d7/attachment.html 


More information about the rspec-devel mailing list