Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Aug 11, 2013
  1. @iainbeeston @mcmire
Commits on Aug 10, 2013
  1. @barelyknown @mcmire
  2. @gregstallings @mcmire

    Fix validate_acceptance_of docs resolves #321

    gregstallings authored mcmire committed
  3. @shioyama @mcmire
  4. @mcmire
  5. @mcmire
  6. @yabawock @mcmire

    Add UUID support to validates_uniqueness_of matcher

    yabawock authored mcmire committed
  7. @mcmire
  8. @barelyknown @mcmire

    fix is_equal_to submatcher for validates_numericality_of

    barelyknown authored mcmire committed
Commits on Aug 1, 2013
  1. @drapergeek

    Specify bundle install for travis.

    drapergeek authored
    * 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.
Commits on Jul 12, 2013
  1. @dim @drapergeek

    Retain stubs on subject for submatchers.

    dim authored drapergeek committed
Commits on Jul 2, 2013
  1. @sj26
Commits on Jun 21, 2013
  1. @fgrehm @mxie

    Add support for counter_cache option in belongs_to associations

    fgrehm authored mxie committed
Commits on Jun 19, 2013
  1. @cwoodcox @drapergeek

    Create a rescue_from matcher for ActionController

    cwoodcox authored drapergeek committed
    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.
Commits on Jun 14, 2013
  1. @mxie
  2. @mxie

    Swap out protected for private methods in AssociationMatcher

    mxie authored
    This also includes some method rearranging so that each would fall under the
    correct scope.
  3. @mxie

    Extract submatchers from AssociationMatcher

    mxie authored
    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.
Commits on Jun 11, 2013
  1. @drapergeek

    Bump to version 2.2.0

    drapergeek authored
Commits on May 24, 2013
  1. @pbrisbin

    Don't swap failure messages in ValidationMatcher

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

    Add comparison submatchers to validate_numericality_of

    Tiago Cardoso authored mcmire committed
    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)
  5. @ivanvc @mcmire

    Fixes validate_uniqueness_of when scope is taken

    ivanvc authored mcmire committed
    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.
Commits on May 10, 2013
  1. @mxie

    Fix have_and_belong_to_many assertion in Rails 4

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

    Bump version to 2.1.0

    mxie authored
Commits on May 3, 2013
  1. @mxie

    Add `failure_message_for_should_not` to `validate_numericality_of`

    mxie authored
    As well as to its submatchers:
    * OnlyIntegerMatcher
    * OddEvenNumberMatcher
Commits on Apr 26, 2013
  1. @sj26 @drapergeek

    Add support for validation contexts.

    sj26 authored drapergeek committed
  2. @henning-koch @drapergeek

    Fix a bug in the pretty_error_messages helper.

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

    Add touch option to belongs_to matcher.

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

    Spelling fixes

    derekprior authored
  2. @derekprior

    Ruby 2.0 Support

    derekprior authored
    * 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.
  3. @derekprior

    Remove traces of 1.8 support

    derekprior authored
    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.
Something went wrong with that request. Please try again.