[rspec-devel] RSpec stepping on Test::Unit?
David Chelimsky
dchelimsky at gmail.com
Fri Dec 8 09:30:50 EST 2006
On 12/8/06, Lee Pope <leepope at gmail.com> wrote:
> Hi all, and thanks for such a great tool!
You're welcome.
> 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.
Go into vendor/plugins/rspec/init.rb and delete everything in there
(leave it blank). That should solve the problem. I'm not sure yet what
it is about rspec that's causing this to happen, but the init file is
duplicating a require that happens in spec/spec_helper.rb, so it's not
necessary.
I'll be committing this a little later, so it will be part of the next release.
Cheers,
David
> 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
>
> _______________________________________________
> rspec-devel mailing list
> rspec-devel at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-devel
>
>
More information about the rspec-devel
mailing list