README.md in aggregate_assertions-0.1.1 vs README.md in aggregate_assertions-0.2.0
- old
+ new
@@ -67,9 +67,30 @@
3) /Users/tjwp/git/aggregate_assertions/test/aggregate_assertions_test.rb:10:
Expected: "{\"message\":\"Success\"}"
Actual: "Not Found"
```
+### Experimental: Enable for all tests
+
+All tests in a class or an entire test suite can be implicitly wrapped
+with `aggregate_assertions`.
+
+To enable for all tests in a class include the module `AggregateAssertions::EachTest`:
+
+```ruby
+class MyTest < Minitest::Test
+ include AggregateAssertions::EachTest
+
+ def test_both_errors_reported
+ # both assertions are reported without needing an explicit aggregate_assertions block
+ assert false, "first error"
+ assert false, "second error"
+ end
+end
+```
+
+To enable for all tests in a test suite require `aggregate_assertions/everywhere` from your `test_helper.rb` file.
+
## Development
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).