Before Minitest 5.4 there was no addl argument sent to the blocks. In 5.4 the splatted additional_desc values are sent. Upgrade our spec_type blocks to accept the splatted addl desc values. And fix the tests by removing the array on them. I dunno what I was thinking...
Generators are supported by Rails 4.1 so we can safely support them here.
So, uh, yeah. The original code never worked. But this does. Added a couple of tests to make sure that namespaced generators work.
Namespace was previously added for controllers but not models. Closes #88.
Add minitest-test as a dependency, which allows Minitest::Test. This will help folks who are confused by the Minitest's API change.
Document the assertions available in ActiveSupport::TestCase. Create and document expectations for AS::TC assertions.
Allow users to opt out of configuring the test helper to use ActiveRecord. To opt out, run the generator as: rails g mini_test:install --skip-active-record
This check only needs to be applied when creating a Rails 4.0 app.
New direction for minitest-rails. Instead of managing the ancestry to AS::TC, extend it with MT::S::DSL instead. Allows for most of the complexity of minitest-rails to go away, and we can focus on more on smoothing edges than maintaining hacks. Thanks @zenspider!
Switch back to the default test helper name, for easier integration in Rails 4.
Just make sure we don't match any test that ends in 'view'.
Since the changes for Rails 4 the TestCase duck-punches aren't as isolated. Add this helper file so that everything gets loaded once. No more calling 'load' instead of 'require'. Uncomment the mailer tests. It was a mistake to comment them out.
This is a big change that simplifies the approach to how minitest is integrated. Use ActiveSupport::TestCase instead of MiniTest::Rails::ActiveSupport::TestCase. Instead of maintaining separate TestCase objects, overwrite the standard objects. Focus only on on what is needed to enable minitest and the spec DSL. Remove the MiniTest::Rails:: prefix from the generated tests.
Call register_spec_type only once. Merged the two regexps.
AM::TestCase and AV::TestCase have different semantics in 3.2, so add checks.
Allow helper spec tests to be nested just like controller spec tests. Add test coverage for helper spec tests and helper_class lookup.
Allow mailer spec tests to be nested just like controller spec tests. Add test coverage for nested spec tests.
ActionMailer needs this functionality as well. In preparation for submitting this to either Rails 4 or Minitest.
Let description Strings match MiniTest::Spec even if ActiveRecord::Base is defined. Add conditional to the register_spec_type check, like the other checks. Added tests. Thanks to @agirorn for the submission!