README.md in minispec-rails-0.1.0 vs README.md in minispec-rails-0.2.0
- old
+ new
@@ -50,9 +50,17 @@
class ApplicationSystemTestCase < ActionDispatch::SystemTestCase
driven_by :selenium, using: :chrome, screen_size: [1400, 1400]
end
```
+### Spec Types
+
+* `describe` any AbstractController::Base subclass, the test will be a subclass of ActionDispatch::IntegrationTest.
+* `describe` any ActiveJob::Base subclass, the test will be a subclass of ActiveJob::TestCase.
+* `describe` any ActionMailer::Base subclass, the test will be a subclass of ActiveJob::TestCase.
+* `describe` any String, the test will be a subclass of ActionDispatch::SystemTestCase.
+* `describe` anything else, the test will be a subclass of ActiveSupport::TestCase.
+
See the [example rails app](https://github.com/ordinaryzelig/minispec-rails-example).
## TODO
* Ask Rails to add `run_load_hooks` for ActionDispatch::SystemTestCase so we can lazy load like the others.