Commit Graph

20 Commits

Author SHA1 Message Date
Pedro Paiva 7d098c92f2 Revert "Use autoloading instead of requiring all files up front"
This reverts commit ce78101362.
2020-08-26 10:52:54 -06:00
Pedro Paiva ce78101362 Use autoloading instead of requiring all files up front 2020-08-24 21:47:12 -06:00
Elliot Winkler 00a84c0bfe Update documentation
[ci skip]
2019-02-16 03:01:35 -07:00
Elliot Winkler 2b0e1fb0e0 Rename StrongParametersMatcher to PermitMatcher 2015-02-28 19:30:33 -07:00
Elliot Winkler 535fe05be8 Consolidate set_session and set_flash APIs
* Refactor so they both use SetSessionOrFlashMatcher internally
* Remove `set_session['key']` in favor of `set_session('key')`
* `set_flash['key'].to(nil)` no longer works if set_flash has never been
  set
2015-02-09 10:52:51 -07:00
Elliot Winkler cc2772324a Add SetSessionOrFlashMatcher 2015-02-09 10:52:51 -07:00
Elliot Winkler c8fb8022b1 Deprecate set_the_flash in favor of set_flash 2014-11-21 14:24:00 -07:00
Elliot Winkler c22d7c89e0 Extract examples in README to inline documentation 2014-06-20 16:41:27 -06:00
Damian Galarza and Harry Schwartz d7eec9ccc9 Revert "Remove 'strong_parameters' matcher"
This reverts commit 7e7fb14677.
2014-03-26 17:46:04 -04:00
Damian Galarza and Harry Schwartz b5083467bc Add CallbackMatcher for ActionController
Matcher for checking if a filter / action callback is in place within a
controller.

Example:

```ruby
describe UserController do
  it { should use_before_filter(:authenticate_user!) }
end
```
2014-03-07 10:54:40 -05:00
Elliot Winkler 4e74ba8e48 Convert to RSpec expect syntax 2014-01-20 11:17:32 -07:00
Elliot Winkler fcbb5c485e Convert to 1.9 hash syntax 2014-01-17 13:20:44 -07:00
Mauro George b8038a235a RouteMatcher#to accepts a string as first param
Some refactor
2013-10-23 13:46:55 -06:00
Corey Woodcox 1b5e3abdf9 Create a rescue_from matcher for ActionController
This matcher tests that the controller has been set up to rescue from a
specific exception with the ActiveSupport::Rescuable#rescue_from method.
It supports checking for a specific method as well.
2013-06-19 18:55:59 -04:00
Melissa Xie 3ec4c0094f Remove 'assign_to' matcher
* See issue #252
2013-04-03 13:08:27 -04:00
Melissa Xie 47ffcdbf38 Remove 'respond_with_content_type' matcher
* See issue #252
2013-04-03 13:08:27 -04:00
Melissa Xie 7e7fb14677 Remove 'strong_parameters' matcher
* See issue #252
* Also changes bourne dependency into a development dependency
2013-04-03 13:08:27 -04:00
Jason Draper and George Brocklehurst 7b15429ebe Add a StrongParametersMatcher 2013-01-25 11:07:48 +01:00
Gabe Berke-Williams af8f9a7bff Use current thoughtbot style in specs 2012-12-26 22:45:54 -05:00
Joe Ferris 56b0a0439e Move into the Matchers namespace 2010-12-15 17:34:19 -05:00