Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Feb 25, 2009
  1. @jferris

    Fixed the low_message and high_message options for should_ensure_valu…

    jferris authored
    …e_in_range [#160 state:committed]
Commits on Jan 31, 2009
  1. @jferris
  2. @jferris
Commits on Jan 30, 2009
  1. @jferris
  2. @jferris
  3. @jferris
  4. @croaky @jferris

    deprecate should_require_attributes with warning message. replace wit…

    croaky authored jferris committed
    …h should_validate_presence_of.
Commits on Jan 27, 2009
  1. @croaky @jferris

    have_db_column matcher done

    croaky authored jferris committed
  2. @croaky @jferris

    added :scale option to have_db_column

    croaky authored jferris committed
  3. @croaky @jferris

    refactored database matcher to be use of_type and with_options. deter…

    croaky authored jferris committed
    …mined :primary option is not a legit migration option. (to set a primary key you need to give :type a value of :priamry_key). improved database matcher description and expectation.
  4. @croaky @jferris

    refactoring should_have_db_columns to use new DatabaseMatcher. markin…

    croaky authored jferris committed
    …g it as complete in active_record_progress list.
Commits on Jan 11, 2009
  1. @mlins @rmm5t

    added dependent option to should_belong_to [#108]

    mlins authored rmm5t committed
  2. @rmm5t

    should_require_attributes now handles arrays (has_many and has_and_be…

    rmm5t authored
    …longs_many) [#109]
Commits on Jan 10, 2009
  1. @rmm5t

    Minor tweaks to should_require_unique_attributes with case_sensitive …

    rmm5t authored
    …option [#130]
     * Documentation modified slightly
     * Made default value for case_sensitive more explicit
     * Improved test cases and added a failing scenario
  2. @lawrencepit @rmm5t
  3. @rmm5t

    Fixed backwards compatibility on new :unique option for should_have_i…

    rmm5t authored
    …ndices [#129]
     * Additional documentation on the :unique option
     * Added more tests to cover all edge cases, including failing scenarios
  4. @lawrencepit @rmm5t

    Added check for uniqueness to should_have_indices [#129]

    lawrencepit authored rmm5t committed
Commits on Jan 6, 2009
  1. @rmm5t

    Fixed automatic instance variable lookup to work with namespaced mode…

    rmm5t authored
    …ls [#88] (Nathaniel Bibler, Kane)
Commits on Sep 17, 2008
  1. @rmm5t
  2. @infused
Commits on Sep 15, 2008
  1. @rmm5t

    Added `should_fail` scenario for testing `should_protect_attributes`

    rmm5t authored
      * Tests the failure case where the model uses attr_accessible instead of attr_protected
  2. @rmm5t
Commits on Sep 2, 2008
  1. @rmm5t

    Deprecated load_all_fixtures [#65]

    rmm5t authored
     * Use `fixtures :all` instead
Commits on Aug 31, 2008
  1. @rmm5t

    Fixed should_have_many regression [#60]

    rmm5t authored
     * Removed the check for the :source option on the assocation as it did not always yield the correct class name
     * Added tests to prevent the regression again
Commits on Aug 8, 2008
  1. @rmm5t

    Fix for pluralization problem in should_belong_to [#19] [Earle Clubb,…

    rmm5t authored
    … Anthony Caliendo]
      should_belong_to :address  # => now works as expected
Commits on Aug 1, 2008
  1. @showaltb @rmm5t

    should_have_many: added tests for :source option

    showaltb authored rmm5t committed
Commits on Jul 31, 2008
  1. @rmm5t
  2. @rmm5t
Commits on Jul 29, 2008
  1. Added should_have_named_scope ActiveRecord test macro

    Tammer Saleh authored
    should_have_named_scope :visible, :conditions => {:visible => true}
    Passes for
      named_scope :visible, :conditions => {:visible => true}
    Or for
      def self.visible
        scoped(:conditions => {:visible => true})
    should_have_named_scope :recent, 5, :limit => 5
    should_have_named_scope :recent, 1, :limit => 1
    Passes for
      named_scope :recent, lambda {|c| {:limit => c}}
Commits on Jul 12, 2008
  1. @thechrisoshow @rmm5t
Commits on Jun 26, 2008
  1. Added should_have_readonly_attributes

    Tammer Saleh authored
    Added should_have_readonly_attributes ActiveRecord helper to
    test attributes set with attr_readonly.
Commits on Jun 24, 2008
  1. @boone

    Added should_have_readonly_attributes

    boone authored
    Added should_have_readonly_attributes ActiveRecord helper to
    test attributes set with attr_readonly.
Commits on Jun 19, 2008
  1. @thechrisoshow
Commits on Jun 7, 2008
  1. Merge git:// into pull-requests

    Tammer Saleh authored
    * git://
      Scoping of uniqueness validations on multiple attributes
Something went wrong with that request. Please try again.