Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master

Feb 10, 2009

  1. Correctly initialize the first test after dynamically calling define_…

    …models.
    authored February 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.
    authored February 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.
    authored February 10, 2009
  4. Lawrence Pit

    Calling new_<stub>! twice would give back two of the same

    Signed-off-by: rick <technoweenie@gmail.com>
    authored September 30, 2008 technoweenie committed February 10, 2009
  5. Lawrence Pit

    Added create_<stub> shortcut

    Signed-off-by: rick <technoweenie@gmail.com>
    authored September 30, 2008 technoweenie committed February 10, 2009

Sep 20, 2008

  1. risk danger olson

    update for edge rails with hack so ActiveRecord::Base.connection.incr…

    …ement_open_transactions still works in older versions of rails
    authored September 20, 2008

Aug 27, 2008

  1. risk danger olson

    Revert "added ModelDefinition::StubProxy so that you can relate stubs…

    … to other stubs that haven't been created yet."
    
    This reverts commit 2d72b3d.
    authored August 27, 2008
  2. risk danger olson

    added ModelDefinition::StubProxy so that you can relate stubs to othe…

    …r stubs that haven't been created yet.
    authored August 27, 2008

Aug 25, 2008

  1. risk danger olson

    I don't think this is the time, nor the place

    authored August 25, 2008

Aug 15, 2008

  1. risk danger olson

    ensure that stubs are loaded in the order that they're entered

    authored August 15, 2008

Jul 31, 2008

  1. risk danger olson

    convenience method for associating your stubs with other stubs in mod…

    …el definitions
    authored July 31, 2008
  2. risk danger olson

    dont cache instantiated stubs with :id => :new

    authored July 31, 2008
  3. risk danger olson

    small tweak so that calling define_method with only a hash inherits f…

    …rom the existing stubs properly
    authored July 31, 2008

Jul 24, 2008

  1. risk danger olson

    custom #define_models method for TestCase and Spec ExampleGroup classees

    authored July 23, 2008

Jul 06, 2008

  1. risk danger olson

    dup values so that in-place edits to model values do not update the s…

    …tub values
    authored July 06, 2008
  2. risk danger olson

    update specs for :validate, so its checked from the model, not the de…

    …finition. make :validate => false by default
    authored July 06, 2008
  3. risk danger olson

    initialize @options in ModelStubbing::Definition

    authored July 06, 2008
  4. risk danger olson

    add validation and callback option support to #model

    authored July 05, 2008

Jul 04, 2008

  1. risk danger olson

    add :validate and :callbacks options to ModelStubbing::Definition

    authored July 04, 2008
  2. risk danger olson

    don't modify has_many stub array

    authored July 04, 2008
  3. risk danger olson

    fix failing specs due to #connection not being defined

    authored July 04, 2008

Jun 22, 2008

  1. Lawrence Pit

    teardown instantiated stubs

    authored June 22, 2008

Jun 21, 2008

  1. Lawrence Pit

    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>
    authored June 22, 2008

Jun 20, 2008

  1. Lawrence Pit

    teardown fixtures when all tests have run

    authored June 20, 2008

Jun 19, 2008

  1. Lawrence Pit

    When assigning has_many instantiated stubs, temporarily act as new ot…

    …herwise AR inserts rows
    authored June 19, 2008
  2. Lawrence Pit

    make sure new_record is set to true before inserting

    authored June 19, 2008

Jun 17, 2008

  1. Lawrence Pit

    Added more tests (tests for new_<modelname>! which save!s instantiate…

    …d tests to the database)
    authored June 18, 2008
  2. Lawrence Pit

    Simplified a few tests and added tests for has_many associationsy

    authored June 18, 2008
  3. Lawrence Pit

    Making all tests pass

    authored June 18, 2008
  4. Lawrence Pit

    Added test for has_many associations

    authored June 18, 2008
  5. Lawrence Pit

    When inserting stub instantiations, set new_record to true before set…

    …ting has_many associations
    authored June 18, 2008
  6. Lawrence Pit

    Reverse settings record.id to nil in insert method

    authored June 17, 2008
  7. Lawrence Pit

    Added example of handling many-to-many stub setup

    authored June 17, 2008
  8. Lawrence Pit

    Handles stubbing many-to-many relationships

    authored June 17, 2008
  9. Lawrence Pit

    added new_<modelname>! bang method, which savespec stub_spec.rb the n…

    …ew object
    authored June 17, 2008
Something went wrong with that request. Please try again.