Commit Graph

7 Commits

Author SHA1 Message Date
Melissa Xie 964dcfe655 Extract submatchers from AssociationMatcher
Refactored AssociationMatcher so that `#order`, `#through`, and `#dependent`
would be their own submatchers. This reduces some of the clutter in the main class,
especially as we continue expanding it. In addition, a few related tests were
modified so that they would check failure messages also.
2013-06-14 13:44:37 -04:00
Melissa Xie c4413a4aca Remove 'query_the_database' matcher
* See issue #252
2013-04-03 13:08:27 -04:00
Brendan Loudermilk ee7422280d Adds accept_nested_attributes_for matcher
Currently supports the options "allow_destroy", "limit", and
"update_only"
2012-04-13 10:38:38 -04:00
Matthew Daubert 00a9a68fb1 Added QueryTheDatabaseMatcher
This matcher allows you to spec the number of database calls made by a
method.
2012-03-23 09:23:32 -04:00
Tom Milewski a3fa2f9bac Adds the serialize matcher to ActiveRecord matchers. 2011-11-15 17:11:41 -05:00
Markus Schwed 2a54fdb28d Seperate ActiveRecord and ActiveModel related matchers 2011-05-06 15:56:36 +02:00
Joe Ferris 56b0a0439e Move into the Matchers namespace 2010-12-15 17:34:19 -05:00