After a few hours of research I have discovered that the following route definition:
Foo::Application.routes.draw do
get 'test' => "test#index"
end
will insert additional, unexpected, tests. For example when I run rake minitest:models I get the following:
Address
PASS (0:00:00.172) test_0001_must be valid
Capybara::Rails::TestCase
PASS (0:00:00.814) test_path
ERROR (0:00:00.816) test_url
Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true
Category
PASS (0:00:01.000) test_0001_creates child node
The Capybara::Rails::TestCase test suite is not defined anywhere. When I remove test route from routes.rb the offending tests disappear. They also disappear if I remove require "minitest/rails/capybara" from test_helper.
I don't need the particular route in my app, but it still seems like a bad bug that could burn more people :)
After a few hours of research I have discovered that the following route definition:
will insert additional, unexpected, tests. For example when I run
rake minitest:models
I get the following:The
Capybara::Rails::TestCase
test suite is not defined anywhere. When I remove test route fromroutes.rb
the offending tests disappear. They also disappear if I removerequire "minitest/rails/capybara"
fromtest_helper
.I don't need the particular route in my app, but it still seems like a bad bug that could burn more people :)