Commit Graph

18 Commits

Author SHA1 Message Date
Wojciech Wnętrzak a463849d6b fixed mass assigment matcher for empty attr_accessible declaration, which should protect all attributes 2011-06-03 12:34:05 +02:00
Prem Sichanugrist 1cd7769339 Fix test which break after upgrade to new RSpec 2.6.0 2011-05-30 15:35:54 -04:00
Prem Sichanugrist 71c47f7cef Fix all the tests. We should be good to go for 3.1.0.rc1 2011-05-25 15:36:13 -04:00
Prem Sichanugrist 3170294b44 Generate new Rails application every time we run RSpec 2011-05-25 15:36:13 -04:00
Jason Morrison 224f2e5a70 Merge pull request #7 from chendry/master
Fix for AssignToMatcher failure message when object is of the wrong kind.
2011-05-20 07:34:17 -07:00
Jason Morrison 574461c63a Upgrade the embedded rails app from 3.0.0.beta4 to 3.1.0.beta1 2011-05-20 10:04:08 -04:00
Markus Schwed 2a54fdb28d Seperate ActiveRecord and ActiveModel related matchers 2011-05-06 15:56:36 +02:00
Chad Hendry de11b4b59b Fix for AssignToMatcher failure message
AssignToMatcher did not include the assigned object in the failure
message when the assigned object is of the wrong kind.
2011-03-30 17:30:23 -05:00
Ryan McGeary 70b706e85a Updated docs for the validate_format_of matcher
* Reflects correct default error message (:invalid)
* Also added extra tests for invalid formats
2011-02-26 09:11:47 -05:00
Justin Case 5de1e7788b The format validator uses :invalid key by default, not :blank.
https://github.com/thoughtbot/shoulda/issues/#issue/119 by adrpac
2011-02-26 09:32:43 +01:00
John Mileham 15bc25ea24 Tests to verify failure behavior when an attribute is not included in the readonly set. 2011-02-23 13:19:02 -05:00
Tristan Dunn 3daca5b601 Support validates_presence_of with a class using ActiveModel::Validations. 2011-01-24 11:19:34 -05:00
Tristan Dunn b8343ef963 Remove "should" from example descriptions in a couple of files. 2010-12-17 12:14:02 -05:00
Tristan Dunn 29ebbecf9a Fix and improve a couple matcher descriptions. 2010-12-17 11:50:49 -05:00
Joe Ferris 56b0a0439e Move into the Matchers namespace 2010-12-15 17:34:19 -05:00
Joe Ferris 2037e969dc Removed the Matchers namespace 2010-12-14 18:51:39 -05:00
Joe Ferris 4ee78bfe99 Fixes for Rails 3.0.3 and RSpec 2.3 2010-12-14 18:35:12 -05:00
Joe Ferris 6aca71765a Extracted the context framework, switched to rspec 2010-12-14 17:02:03 -05:00