1
0
Fork 0
mirror of https://github.com/thoughtbot/shoulda-matchers.git synced 2022-11-09 12:01:38 -05:00

Add callback matchers to README

This commit is contained in:
Elliot Winkler 2015-01-19 23:23:53 -07:00
parent 9b252cca9b
commit 7f1306841e

View file

@ -72,6 +72,15 @@ complex, and error-prone.
makes assertions on the `session` hash.
* **[set_flash](lib/shoulda/matchers/action_controller/set_flash_matcher.rb)**
makes assertions on the `flash` hash.
* **[use_after_action](lib/shoulda/matchers/action_controller/use_after_action.rb)**
tests that a `after_action` callback is defined in your controller. (Aliased
as *use_after_filter*.)
* **[use_around_action](lib/shoulda/matchers/action_controller/use_around_action.rb)**
tests that a `around_action` callback is defined in your controller. (Aliased
as *use_around_filter*.)
* **[use_before_action](lib/shoulda/matchers/action_controller/use_before_action.rb)**
tests that a `before_action` callback is defined in your controller. (Aliased
as *use_before_filter*.)
### Independent Matchers