Skip to content


Subversion checkout URL

You can clone with
Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: thoughtbot/shoulda-matchers
head fork: thoughtbot/shoulda-matchers
Commits on Sep 13, 2012
@jferris jferris Extract ValidationMessageFinder from AllowValueMatcher 3dbf5d4
@jferris jferris Extract ExceptionMessageFinder from AllowValueMatcher
* Replaces repeated conditional with polymorphism
@jferris jferris Fix failure on 1.8.7 1ca1f72
Commits on Sep 14, 2012
@jferris jferris Add documentation for strict validation testing fde078d
Adarsh Pandit Update Copyright year a74cee3
@grosser grosser Protect against unmatchable classes in flash matcher 27841b7
Commits on Sep 21, 2012
@steveklabnik steveklabnik Refactor have_db_index_matcher#correct_unique?
Currently, there is an assumption that `matched_index.unique` will
be `true` and not truthy. This is not always the case. This can
cause tests to fail, even though they should pass. This allows
`matched_index.unique` to be truthy.
@gauravs gauravs Don't assume that the column is of integer type
Postgres adapter does not convert integers to string upon assignment, so initialize with correct value.
@karledurante karledurante Using ActiveRecord::Base.connection is presumptuous. You must infer t…
…he home of the join table using the parent model. This allows developers to define HABTM relationships in other databases and still use the 'have_and_belong_to_many' matcher.
@grk grk Add in_array to ensure_exclusion_of 8a477a9
@jacobsimeon jacobsimeon add custom foreign key test cf6452d
@jacobsimeon jacobsimeon don't conflict with the pre-existing method 1b31a06
@jacobsimeon jacobsimeon allow testing of :foreign_key option for has_one relationships ca8a1e5
@jesseplusplus jesseplusplus Fix ensure_length_of matcher to work for is_equal_to cases when the a…
…ttribute has other validations on it.

Now that the upper bound matchers are not being skipped for the is_equal_to case, the expected error message needs to be set for the upper bound.
@grantovich grantovich Don't lock Bundler at minor version b658c4b
@grantovich grantovich Whoops, don't use Bundler 1.0 2c214e4
@grantovich grantovich [#120] Test more blank values with allow_blank 12121b8
Commits on Sep 28, 2012
@drapergeek drapergeek Model must only allow values inside of array for EnsureInclusionOf dc5daca
@gabebw gabebw Use `all?`. 7f208e7
Commits on Oct 01, 2012
@gabebw gabebw Test against Rails 3.2 in Travis. 79d8ea0
@gabebw gabebw Update appraisals to latest Rails versions. 04ce177
Commits on Oct 02, 2012
@rmm5t rmm5t Fixed the pretty_key output of the set_the_flash matcher ddcd0f5
Commits on Oct 05, 2012
@drapergeek drapergeek Try next values in array only.
If we can't find a valid next value outside of each item
in the array, throw a custom exception.
@drapergeek drapergeek Bump version to 1.4.0 e5914f7
@drapergeek drapergeek Deprecrate matchers for 2.0 7beec81