Commit Graph

9 Commits

Author SHA1 Message Date
Damian Galarza and Harry Schwartz 723b5d3552 Remove dependencies for `StrongParametersMatcher`
Refactor the `StrongParametersMatcher` to work without depending on
bourne for spying on methods. Use an internal spying tool to provide
platform independence.

Other improvements include:

* Standardize `failure_message` method naming
* Properly detect when a matcher does not match
* Add documentation for `permit` matcher.
2014-03-26 17:47:05 -04:00
Damian Galarza and Harry Schwartz d7eec9ccc9 Revert "Remove 'strong_parameters' matcher"
This reverts commit 7e7fb14677.
2014-03-26 17:46:04 -04:00
Elliot Winkler fcbb5c485e Convert to 1.9 hash syntax 2014-01-17 13:20:44 -07:00
Elliot Winkler 8a0bf45d0f Refactor spec_helper
The code that sets up the blank Rails application we use for testing is
a little messy. Let's use an object to encapsulate this and then refer
to this object every time we access Rails.application.
2013-12-03 11:09:06 -05: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
Gabe Berke-Williams 891018f3bd Formatting 2012-12-19 23:59:30 -05:00
Gabe Berke-Williams f5f64821a3 Split up ModelBuilder. 2012-06-21 14:01:35 -04:00