Permalink
Commits on Mar 24, 2011
  1. Expect (failing) that any_instance.should_receive should fail if no

    instance is created during the course of an example.
    dchelimsky committed Mar 24, 2011
  2. Use #method_defined? instead of #instance_methods.include?.

    - All specs now pass on MRI 1.8.7 and MRI 1.9.2.
    alindeman committed with dchelimsky Mar 18, 2011
  3. Add support for any_instance:

    - MyClass.any_instance.stub(:m)
    - MyClass.any_instance.should_receive(:m)
    - includes stub and mock APIs including
      - and_return, and_raise, and_yield
      - once, twice, exactly, any_number_of_times, never, at_least, at_most
    
    - Closes #46.
    - Closes #10.
    kaiwren committed with dchelimsky Mar 24, 2011
Commits on Mar 23, 2011
Commits on Mar 8, 2011
  1. format doc

    dchelimsky committed Mar 8, 2011
Commits on Mar 6, 2011
Commits on Feb 26, 2011
  1. move some specs around

    dchelimsky committed Feb 26, 2011
  2. docs

    dchelimsky committed Feb 21, 2011
  3. Don't patch Psych.dump unless Psych is loaded and responds to #dump.

    This fixes errors with running the specs on 1.9.2 w/o psych support compiled in.
    myronmarston committed Feb 26, 2011
Commits on Feb 20, 2011
  1. Fix yaml serialization when using Psych.

    Without these changes, I was getting SystemStackErrors when calling YAML.dump(stubbed_object) or stubbed_object.to_yaml.
    
    To test this, you may need to reinstall ruby 1.9.2 with psych support.  On OSX with homebrew and rvm, this will do the trick:
    
    brew install libyaml
    rvm install ruby-1.9.2 --with-libyaml-dir=/usr/local
    
    Closes #36.
    myronmarston committed Feb 8, 2011
  2. Allow users to specify return values by passing a block to #at_least,…

    … #at_most and #exactly.
    
    - @mock.should_receive(:to_s).at_least(:once) { "return val" }
    - @mock.should_receive(:to_s).at_most(:once) { "return val" }
    - @mock.should_receive(:to_s).exactly(:once) { "return val" }
    
    Each of the above now work but previously returned nothing since the block was discarded.
    
    Closes #40.
    myronmarston committed Feb 20, 2011
Commits on Feb 12, 2011
  1. fix bug in which multiple chains with shared messages ending in hashes

    failed to return the correct value
    
    - also documented stub_chain(:a, :b => :c) format in feature
    dchelimsky committed Feb 12, 2011
  2. regexps in Guardfile

    dchelimsky committed Feb 12, 2011
Commits on Feb 5, 2011
  1. prep for 2.5 release

    dchelimsky committed Feb 5, 2011
  2. doc tweaks

    dchelimsky committed Feb 5, 2011
  3. Don't force cucumber presence on Rakefile.

    Only define the cucumber tasks if cucumber is available, allowing for the
    Rakefile to work without Cucumber installed.
    
    Note that Cucumber is still part of the bundle, so unless you're
    disabling bundler as well, this patch has no effect.
    
    See rspec#35 for background.
    
    - Closes #35.
    Flameeyes committed with dchelimsky Feb 2, 2011
  4. changelog

    dchelimsky committed Feb 5, 2011
Commits on Jan 17, 2011
  1. docs

    dchelimsky committed Jan 17, 2011
Commits on Jan 16, 2011
  1. update history

    dchelimsky committed Jan 16, 2011
  2. Fix bug: Message expectation counts don't work in combination with a …

    …stub
    
    - Closes #28.
    - Closes #33.
    dnurzynski committed with dchelimsky Jan 16, 2011
Commits on Jan 2, 2011
  1. prep for 2.4.0 release

    dchelimsky committed Jan 2, 2011
Commits on Dec 31, 2010
  1. fix changelog link

    dchelimsky committed Dec 31, 2010
Commits on Dec 30, 2010
Commits on Dec 21, 2010
  1. reorganize the nav for relish

    dchelimsky committed Dec 21, 2010
Commits on Dec 18, 2010
Commits on Dec 14, 2010
  1. bump version to 2.4.0.pre

    dchelimsky committed Dec 14, 2010
Commits on Dec 12, 2010
  1. prep for 2.3.0 release

    dchelimsky committed Dec 12, 2010
Commits on Dec 11, 2010
  1. history

    dchelimsky committed Dec 11, 2010
  2. Fix our Marshal extension so that it does not interfere with objects …

    …that have their own @mock_proxy instance variable.
    
    Since our Marshal extension is loaded globally and affects every Marshal.dump call, we need to be extra careful not to unintentionally affect other things that rely on it.
    
    - Closes #29.
    myronmarston committed with dchelimsky Nov 7, 2010
Commits on Dec 7, 2010
Commits on Dec 1, 2010
  1. bump to 2.3.0.pre

    dchelimsky committed Dec 1, 2010
Commits on Nov 30, 2010
  1. links

    dchelimsky committed Nov 30, 2010
Commits on Nov 28, 2010
  1. bump version to 2.2

    dchelimsky committed Nov 28, 2010