Skip to content
Commits on Aug 12, 2012
  1. @myronmarston

    2.11.2 release.

    myronmarston committed Aug 11, 2012
Commits on Aug 11, 2012
  1. @myronmarston

    Fix use of const_defined? and const_get so it ignores top-level const…

    myronmarston committed Aug 10, 2012
    …ants.
    
    I didn't realize this previously, but these methods can pick up a top-level
    constant when you don't intend it (e.g. ::Hash when checking MyGem.const_defined?("Hash")).
Commits on Aug 10, 2012
  1. @alindeman

    Merge pull request #173 from jredville/master

    alindeman committed Aug 10, 2012
    Clean up formatting for Relish
  2. @jredville

    fix formatting for relish

    jredville committed Aug 10, 2012
Commits on Aug 5, 2012
  1. @dchelimsky
  2. @dchelimsky
Commits on Aug 3, 2012
  1. @myronmarston

    Update changelog.

    myronmarston committed Aug 2, 2012
  2. @myronmarston

    Cleanup spec a bit.

    myronmarston committed Aug 2, 2012
  3. @daneget @myronmarston

    Fix any_instance to handle methods defined on superclasses.

    daneget committed with myronmarston Aug 2, 2012
    Previously, the recorder implementation created a SystemStackError.
    
    Closes #152.
Commits on Aug 1, 2012
  1. @dchelimsky
Commits on Jul 11, 2012
  1. @myronmarston

    Fix ruby warnings.

    myronmarston committed Jul 10, 2012
    - lib/rspec/mocks/error_generator.rb:32: warning: assigned but unused variable - expected_args
    - lib/rspec/mocks/error_generator.rb:33: warning: assigned but unused variable - actual_args
    - lib/rspec/mocks/stub_const.rb:8: warning: shadowing outer local variable - name
    - lib/rspec/mocks/stub_const.rb:12: warning: shadowing outer local variable - name
    - spec/rspec/mocks/stub_const_spec.rb:60: warning: assigned but unused variable - orig_value
    - lib/rspec/mocks/stub_const.rb:233: warning: instance variable @registered_with_mocks_space not initialized
    
    
    Closes #162.
Commits on Jul 10, 2012
  1. @justinko

    Merge pull request #161 from ugisozols/master

    justinko committed Jul 10, 2012
    Add missing 'be's to the README.
  2. @ugisozols
  3. @myronmarston

    2.11.1 release.

    myronmarston committed Jul 9, 2012
Commits on Jul 9, 2012
  1. @myronmarston

    Fix edge case bug exposed w/ `should_receive` on a null object w/ a p…

    myronmarston committed Jul 9, 2012
    …revious stub.
    
    In a case like:
    
      double = stub.as_null_object
      double.stub(:foo => "bar")
      double.should_receive(:foo)
      double.foo
    
    ..it used to return "bar", but due to my changes in a5f296e it was returning `self`.
Commits on Jul 7, 2012
  1. @dchelimsky
  2. @dchelimsky

    bump to 2.11.0

    dchelimsky committed Jul 7, 2012
Commits on Jun 27, 2012
  1. @myronmarston

    Update changelog.

    myronmarston committed Jun 26, 2012
  2. @myronmarston

    Merge pull request #156 from amarshall/master

    myronmarston committed Jun 26, 2012
    Raise RuntimeError instead of Exception by default in and_raise to match Ruby's default
  3. @amarshall
Commits on Jun 25, 2012
  1. @myronmarston

    Cleanup whitespace.

    myronmarston committed Jun 24, 2012
    (Actually, I'm mostly doing this just to trigger a travis build. A
    recent change in rspec-expectations[1] broke the rspec-mocks
    travis build, and now that it's fixed[2], I want to see that the
    rspec-mocks build is passing.  I figured I may as well make a useful
    but non functional change while I'm at it, though).
    
    [1] rspec/rspec-expectations@4024344#commitcomment-1496381
    [2] rspec/rspec-expectations@a3e2839
Commits on Jun 24, 2012
  1. @myronmarston

    Fix `should_receive` to preserve null object behavior.

    myronmarston committed Jun 23, 2012
    Given a case like:
    
       double = mock.as_null_object
       double.should_receive(:bar)
    
    ...`double.bar` was returning nil when it should return the double itself, since that's the expected null object behavior and no implementation was provided for the mock expectation.
    
    Closes #155.
Commits on Jun 18, 2012
  1. @myronmarston
  2. @myronmarston
Commits on Jun 15, 2012
  1. @dchelimsky

    refactor: rename ExpectationChain to PositiveExpectationChain

    dchelimsky committed Jun 15, 2012
    Also extract base ExpectationChain.
Commits on Jun 11, 2012
  1. @myronmarston
  2. @myronmarston
  3. @myronmarston
Commits on Jun 8, 2012
  1. @myronmarston

    Refactor away the use of #its.

    myronmarston committed Jun 7, 2012
    #its is going away in rspec-core at some future point, so we shouldn't use it here.
  2. @myronmarston
Commits on Jun 7, 2012
  1. @myronmarston

    Add `Constant.original` API to query rspec-mocks about stubbed consta…

    myronmarston committed Jun 6, 2012
    …nts.
    
    This needs to be documented, but I want to get feedback from others before spending effort on that.
  2. @myronmarston

    Return stubbed value rather than original value from stub_const.

    myronmarston committed Jun 6, 2012
    This allows chaining:
    
      stub_const("Foo", double).stub(:foo)
Commits on Jun 4, 2012
  1. @dchelimsky
  2. @dchelimsky

    Merge pull request #147 from c42engineering/issue123

    dchelimsky committed Jun 4, 2012
    Issue #123: Improved error message when user forgets to stub a method with a default.
  3. Issue #123: Improved error message when user forgets to stub a method…

    Neha Kumari committed Jun 4, 2012
    … with default behavior.
Something went wrong with that request. Please try again.