Permalink
Commits on Jan 27, 2009
  1. refactored database matcher to be use of_type and with_options. deter…

    croaky committed with jferris Jan 24, 2009
    …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.
  2. changing correct_ helpers on database matcher to explicitly check nil…

    croaky committed with jferris Jan 24, 2009
    … as I was getting burned by boolean test
  3. making database matcher take limit option, refactoring database match…

    croaky committed with jferris Jan 24, 2009
    …er tests, making DatabaseColumn raise an ArgumentError when column name and type are not provided
  4. altering build_model_class to take a DatabaseColumn object instead of…

    croaky committed with jferris Jan 24, 2009
    … a Hash of column :name => :type mappings. this is necessary to test attributes of database columns other than type (precision, default, limit, null, primary, scale, & sql_type)
  5. Fixed failing matcher tests

    jferris committed Jan 22, 2009
  6. Changed the have_db_columns matcher test to use a model name that doe…

    jferris committed Jan 22, 2009
    …sn't conflict with the rest of the Shoulda suite
  7. refactoring should_have_db_columns to use new DatabaseMatcher. markin…

    croaky committed with jferris Jan 22, 2009
    …g it as complete in active_record_progress list.
  8. Refactored ActiveRecord matchers to use in-test models/tables, and re…

    jferris committed Dec 15, 2008
    …moved the have_attribute matcher (not needed for shoulda macros)