Commits on Aug 10, 2013
  1. fix is_equal_to submatcher for validates_numericality_of

    barelyknown committed with mcmire Jul 30, 2013
Commits on Aug 1, 2013
  1. Specify bundle install for travis.

    * Thanks to @sikachu!
    Travis will now runs `bundle install --deployment` if it detects that
    the project has `Gemfile.lock`. However, there's a problem in Bundler
    deployment install that cause it not installing `bundler` gem into
    `vendor/bundle` directory, which causes `require 'bundler'` to fail.
    drapergeek committed Aug 1, 2013
Commits on Jul 12, 2013
Commits on Jul 2, 2013
Commits on Jun 21, 2013
Commits on Jun 19, 2013
  1. 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.
    cwoodcox committed with drapergeek Apr 26, 2013
Commits on Jun 14, 2013
  1. Swap out protected for private methods in AssociationMatcher

    This also includes some method rearranging so that each would fall under the
    correct scope.
    mxie committed Jun 14, 2013
  2. 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.
    mxie committed Jun 7, 2013
Commits on Jun 11, 2013
  1. Bump to version 2.2.0

    drapergeek committed Jun 11, 2013
Commits on May 24, 2013
  1. Don't swap failure messages in ValidationMatcher

    It's not entirely clear why these were being swapped to begin with, but
    it was causing messages to appear backwards in the presence validation
    Other matchers using these methods were tested by hand and still output
    correct messages -- they too may have been backwards before this fix.
    pbrisbin committed May 24, 2013
  2. Add comparison submatchers to validate_numericality_of

    You can now use the following with validate_numericality_of:
    * is_greater_than (corresponds to :greater_than)
    * is_greater_than_or_equal_to (corresponds to :greater_than_or_equal_to)
    * is_equal_to (corresponds to :equal_to)
    * is_less_than (corresponds_to :less_than)
    * is_less_than_or_equal_to (corresponds_to :less_than_or_equal_to)
    Tiago Cardoso committed with mcmire Feb 19, 2013
  3. Fixes validate_uniqueness_of when scope is taken

    Re-implement how to get previous value in order to test
    validate_uniquenes_of matcher, after the scope changes. This way, new
    value should not be taken by a previous record. Fixes #207.
    ivanvc committed with mcmire May 17, 2013
Commits on May 10, 2013
  1. Fix have_and_belong_to_many assertion in Rails 4

    Peter Haza committed with mxie May 3, 2013
Commits on May 5, 2013
  1. Bump version to 2.1.0

    mxie committed May 5, 2013
Commits on May 3, 2013
  1. Add `failure_message_for_should_not` to `validate_numericality_of`

    As well as to its submatchers:
    * OnlyIntegerMatcher
    * OddEvenNumberMatcher
    mxie committed Apr 12, 2013
Commits on Apr 26, 2013
  1. Fix a bug in the pretty_error_messages helper.

    * Fixes an issue where matchers would fail on models
    with an autosaved belongs_to association.
    triskweline committed with drapergeek Mar 26, 2013
  2. Add touch option to belongs_to matcher.

    * Also fixes validate failing when specified on model but not on matcher.
    panupan committed with drapergeek Apr 10, 2013
Commits on Apr 19, 2013
  1. Spelling fixes

    derekprior committed Apr 19, 2013
  2. Ruby 2.0 Support

    * Add Ruby 2.0 support to the Appraisals
    * Update travis to test 2.0.0 with the 3.2 gemfile. Clean up the travis
      matrix to favor the include syntax over exclude.
    * Edit gemfile.locks to point to relative paths.
    derekprior committed Mar 15, 2013
  3. Remove traces of 1.8 support

    Shoulda Matchers 2.0 removed support for 1.8. This change removes Ruby
    1.8 tests from travis and sets the minimum Ruby version in the gemspec.
    derekprior committed Apr 19, 2013
Commits on Apr 12, 2013
  1. Allow the use of %{attribute} or %{model} in i18n translations.

    Fix a bug where shoulda was raising an exception, when a translation
    in en.yml was modified to include %{attribute} or %{model}
    ahey committed with mxie Mar 29, 2013
Commits on Apr 5, 2013
  1. Bump version to 2.0.0

    mxie committed with mxie Mar 19, 2013
Commits on Apr 3, 2013
  1. Remove 'assign_to' matcher

    * See issue #252
    mxie committed with mxie Mar 15, 2013
  2. Remove 'respond_with_content_type' matcher

    * See issue #252
    mxie committed with mxie Mar 15, 2013