Commits on Aug 1, 2013
  1. @drapergeek

    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
  1. @dim @drapergeek
Commits on Jul 2, 2013
  1. @sj26
Commits on Jun 21, 2013
  1. @fgrehm @mxie
Commits on Jun 19, 2013
  1. @cwoodcox @drapergeek

    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. @mxie
  2. @mxie

    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
  3. @mxie

    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. @drapergeek

    Bump to version 2.2.0

    drapergeek committed Jun 11, 2013
Commits on May 24, 2013
  1. @pbrisbin

    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. @pbrisbin
  3. @mcmire
  4. @mcmire

    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
  5. @ivanvc @mcmire

    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. @mxie

    Fix have_and_belong_to_many assertion in Rails 4

    Peter Haza committed with mxie May 4, 2013
Commits on May 5, 2013
  1. @mxie

    Bump version to 2.1.0

    mxie committed May 5, 2013
Commits on May 3, 2013
  1. @mxie

    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. @sj26 @drapergeek
  2. @henning-koch @drapergeek

    Fix a bug in the pretty_error_messages helper.

    * Fixes an issue where matchers would fail on models
    with an autosaved belongs_to association.
    henning-koch committed with drapergeek Mar 26, 2013
  3. @mxie
  4. @demiazz @mxie
  5. @hbakhtiyor @drapergeek
  6. @panupan @drapergeek

    Add touch option to belongs_to matcher.

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

    Spelling fixes

    derekprior committed Apr 19, 2013
  2. @derekprior

    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. @derekprior

    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. @ahey @mxie

    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. @mesozoic @mxie
  2. @drapergeek @mxie
  3. @mxie @mxie

    Bump version to 2.0.0

    mxie committed with mxie Mar 19, 2013
Commits on Apr 3, 2013
  1. @mxie @mxie

    Remove 'assign_to' matcher

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

    Remove 'respond_with_content_type' matcher

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

    Remove 'query_the_database' matcher

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

    Remove 'validate_format_of' matcher

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

    Remove 'have_sent_email' matcher

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