Permalink
Commits on May 24, 2012
  1. `should_receive(x).at_least(:once).and_return(y)` always returns y ev…

    …en if x is already stubbed
    
        widget.stub(:count => 1)
        widget.should_receive(:count).at_least(:once).and_return(2)
        widget.count #=> 2
        widget.count #=> 2
    
    If there is no return value set, it will fall back to the stub value:
    
        widget.stub(:count => 1)
        widget.should_receive(:count).at_least(:once)
        widget.count #=> 1
        widget.count #=> 1
    
    - Fixes #142
    dchelimsky committed May 24, 2012
Commits on May 23, 2012
  1. Merge pull request #139 from c42engineering/issue124

    add support for any_instance.should_not_receive
    dchelimsky committed May 23, 2012
  2. Replicated Issue #124

    kaiwren committed May 23, 2012
  3. changelog [ci skip]

    justinko committed May 23, 2012
Commits on May 22, 2012
  1. Update changelog.

    myronmarston committed May 22, 2012
Commits on May 20, 2012
Commits on May 19, 2012
  1. Replicating Issue #120

    kaiwren committed May 19, 2012
Commits on May 17, 2012
  1. Fix a regression.

    When doing something like:
    
      double.stub(:foo).and_return(a, b)
      double.should_receive(:foo).once { a }
      double.foo
    
    ...it used to work, but in 2.10 it raises a NoMethodError (#size).
    myronmarston committed May 17, 2012
  2. Merge pull request #115 from nathanl/master

    Explained why `before(:all)` won't work for stubs.
    dchelimsky committed May 17, 2012
Commits on May 13, 2012
  1. spec refactoring: rename subject with intention revealing name

    - even though 'object' is no less generic than 'subject', it makes it
      more clear that we're talking about a generic object.
    dchelimsky committed May 13, 2012
  2. dev: rename context

    dchelimsky committed May 13, 2012
Commits on May 9, 2012
  1. Expose ArgumentListMatcher as a formal API

    - supports use by 3rd party mock frameworks like Surrogate.
    dchelimsky committed May 9, 2012
Commits on May 5, 2012
  1. bump to 2.10.1

    dchelimsky committed May 5, 2012
  2. should_not_receive ignores and_return

    - See #132
    dchelimsky committed May 5, 2012
  3. dev: refactor a spec

    dchelimsky committed May 5, 2012
  4. dev: config for :focus

    dchelimsky committed May 5, 2012
Commits on May 4, 2012
  1. Make sure at_least(0) passes even when never called

    - Fixes #132 again
    dchelimsky committed May 4, 2012
  2. bump to 2.10.0

    dchelimsky committed May 4, 2012
Commits on May 1, 2012
  1. update yard to 0.8

    dchelimsky committed May 1, 2012
Commits on Apr 22, 2012
  1. shorten file extension

    dchelimsky committed Apr 22, 2012
Commits on Apr 21, 2012
  1. one line on one line

    dchelimsky committed Apr 21, 2012
Commits on Apr 18, 2012
  1. Merge pull request #126 from CoryFoy/patch-1

    Correct spelling of "Responses"
    justinko committed Apr 18, 2012
  2. Correct spelling of "Responses"

    CoryFoy committed Apr 18, 2012
Commits on Apr 17, 2012
  1. Make the fact that you can set message expectations on class objects

    more obvious.
    
    - Closes #125.
    
    [ci skip]
    dchelimsky committed Apr 17, 2012