Skip to content

rails c ⇒ odd, empty test runs. #115

Description

@rking

If you start with rails new foo && cd foo

Then edit the Gemfile to have:

group :development do
  gem 'turn'
  gem 'pry-rails'
end

Then run: rails c

Then hit ^D to exit the console, you'll get funky output like this:

Loaded Suite test,test/functional,test/unit,test/unit/helpers,test/performance
Started at 2012-12-03 05:56:45 +0000 w/ seed 23441.
Finished in 0.839736 seconds.
0 tests, 0 passed, 0 failures, 0 errors, 0 skips, 0 assertions

This doesn't happen:

  • without the turn gem
  • without the pry-rails gem (not even if you Pry.start from ~/.irbrc)

We haven't had time to look into it beyond seeing that:

  • It comes from the test autorun stuff
  • railties-3.2.9/lib/rails/console/app.rb has a funky hack:
# work around the at_exit hook in test/unit, which kills IRB
Test::Unit.run = true if Test::Unit.respond_to?(:run=)

Any clues about this one?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions