Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Jan 7, 2013
  1. @ywen @alindeman

    `subject.should be_valid` works correctly with ActiveResource models

    ywen authored alindeman committed
    * ... where valid? does not take an argument
    * Closes #648
  2. @jfirebaugh @alindeman

    Don't assume ActiveModel is available

    jfirebaugh authored alindeman committed
    Like ActiveRecord, it is optional and its railtie may not
    have been required.
Commits on Sep 12, 2012
  1. @woahdae @alindeman

    Support validation contexts when using #errors_on

    woahdae authored alindeman committed
    Previously, Model#errors_on calls Model#valid?, which will both clear
    the errors hash and run validations in the default context. This adds an
    :context option to #errors_on that gets passed to #valid?, allowing using
    errors_on with validation contexts.
    Exmaple usage:
        class Foo
          validates :name, length: {minimum: 20}, on: :publication
        describe Foo
          it 'should have a name greater than 20 characters on publication' do
   = 'too short'
   have(1).error_on(:name, context: :publication)
Commits on Dec 8, 2011
  1. @dchelimsky

    more rdoc cleanup

    dchelimsky authored
Commits on Nov 22, 2011
  1. @dchelimsky
  2. @dchelimsky

    small rdoc tweak

    dchelimsky authored
Commits on Oct 16, 2011
  1. @dchelimsky

    cleanup and add some rdoc

    dchelimsky authored
Commits on Nov 6, 2010
  1. @dchelimsky

    just ask if AR is defined instead

    dchelimsky authored
    - Closes #254.
  2. @dchelimsky

    Move error[s]_on to ActiveModel::Validations so it can be used by other

    dchelimsky authored
    ActiveModel compliant ORMs
    - Closes #251.
Commits on Sep 5, 2010
  1. @dchelimsky

    Use Rails config to determine whether or not we're using AR

    dchelimsky authored
    - defined?(:ActiveRecord) is unreliable
Commits on Jul 24, 2010
  1. @dchelimsky
Commits on Jul 18, 2010
  1. @dchelimsky

    cleanup whitespace

    dchelimsky authored
Commits on May 17, 2010
  1. @dchelimsky
Commits on Apr 28, 2010
  1. @dchelimsky
Something went wrong with that request. Please try again.