Permalink
Commits on Feb 10, 2009
  1. Correctly initialize the first test after dynamically calling define_…

    …models.
    Darrick Wiebe committed Feb 10, 2009
  2. Bettor support for nested definitions.

    The database rollback needs to happen even if no models were initiated because they could always be manually created. Allow Definition instances to know their own name. Improve upon the previous method of searching the class heirarchy for definitions, now search for what was defined and then redefine it in the current subclass -- that actually got all of my tests passing in my app.
    Darrick Wiebe committed Feb 10, 2009
  3. Allow a recursive search up the class heirarchy for the definition of…

    … the models, allowing the stub method to be called from nested describe blocks in rspec.
    Darrick Wiebe committed Feb 10, 2009
  4. Calling new_<stub>! twice would give back two of the same

    Signed-off-by: rick <technoweenie@gmail.com>
    lawrencepit committed with technoweenie Sep 30, 2008
  5. Added create_<stub> shortcut

    Signed-off-by: rick <technoweenie@gmail.com>
    lawrencepit committed with technoweenie Sep 30, 2008
Commits on Sep 20, 2008
  1. update for edge rails with hack so ActiveRecord::Base.connection.incr…

    …ement_open_transactions still works in older versions of rails
    technoweenie committed Sep 20, 2008
Commits on Aug 27, 2008
  1. Revert "added ModelDefinition::StubProxy so that you can relate stubs…

    … to other stubs that haven't been created yet."
    
    This reverts commit 2d72b3d.
    technoweenie committed Aug 27, 2008
  2. added ModelDefinition::StubProxy so that you can relate stubs to othe…

    …r stubs that haven't been created yet.
    technoweenie committed Aug 27, 2008
Commits on Aug 25, 2008
Commits on Aug 15, 2008
Commits on Jul 31, 2008
  1. small tweak so that calling define_method with only a hash inherits f…

    …rom the existing stubs properly
    technoweenie committed Jul 31, 2008
Commits on Jul 24, 2008
Commits on Jul 6, 2008
  1. update specs for :validate, so its checked from the model, not the de…

    …finition. make :validate => false by default
    technoweenie committed Jul 6, 2008
Commits on Jul 4, 2008
Commits on Jun 22, 2008
  1. teardown instantiated stubs

    lawrencepit committed Jun 22, 2008
Commits on Jun 21, 2008
  1. Clear stubbing records between tests, to prevent re-use of modified i…

    …nstantiated stub -- thnx D. Bell
    
    Signed-off-by: Lawrence Pit <lawrence.pit@gmail.com>
    lawrencepit committed Jun 21, 2008
Commits on Jun 20, 2008
Commits on Jun 19, 2008
  1. When assigning has_many instantiated stubs, temporarily act as new ot…

    …herwise AR inserts rows
    lawrencepit committed Jun 19, 2008
Commits on Jun 17, 2008
  1. Added more tests (tests for new_<modelname>! which save!s instantiate…

    …d tests to the database)
    lawrencepit committed Jun 17, 2008
  2. Making all tests pass

    lawrencepit committed Jun 17, 2008
  3. When inserting stub instantiations, set new_record to true before set…

    …ting has_many associations
    lawrencepit committed Jun 17, 2008