Permalink
Commits on Feb 20, 2011
  1. Fix yaml serialization when using Psych.

    myronmarston committed Feb 8, 2011
    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.
  2. Allow users to specify return values by passing a block to #at_least,…

    myronmarston committed Feb 20, 2011
    … #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.
Commits on Feb 12, 2011
  1. fix bug in which multiple chains with shared messages ending in hashes

    dchelimsky committed Feb 12, 2011
    failed to return the correct value
    
    - also documented stub_chain(:a, :b => :c) format in feature
  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.

    Flameeyes committed with dchelimsky Feb 2, 2011
    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.
  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 …

    dnurzynski committed with dchelimsky Jan 16, 2011
    …stub
    
    - Closes #28.
    - Closes #33.
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 …

    myronmarston committed with dchelimsky Nov 7, 2010
    …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.
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
  2. prep for 2.2 release

    dchelimsky committed Nov 28, 2010
  3. more history

    dchelimsky committed Nov 28, 2010
Commits on Nov 26, 2010
  1. Fix bug where obj.should_receive(:foo).with(stub.as_null_object) would

    dchelimsky committed Nov 26, 2010
    pass with a false positive.
    
    - Closes #233.
  2. guard _this_

    dchelimsky committed Nov 26, 2010
Commits on Nov 25, 2010
  1. upgrade to cucumber 0.9.4

    dchelimsky committed Nov 25, 2010
Commits on Nov 21, 2010
  1. History

    dchelimsky committed Nov 21, 2010
  2. Method calls with expanded arrays require parentheses

    gioele committed with dchelimsky Nov 21, 2010
    This fixes the following warning:
    
        lib/rspec/mocks/message_expectation.rb:43: warning: `*' interpreted
        as argument prefix
    
    - Closes #30.
Commits on Nov 19, 2010
  1. Added "rspec/mocks/standalone"

    dchelimsky committed Nov 19, 2010
    - useful in irb to explore the framework
    - also eliminated two require calls per example when using rspec-mocks
      with rspec-core - huge performance boost (20% range)