Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Jun 18, 2012
  1. @myronmarston
  2. @myronmarston
Commits on Jun 15, 2012
  1. @dchelimsky

    refactor: rename ExpectationChain to PositiveExpectationChain

    dchelimsky authored
    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 authored
    #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 authored
    …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 authored
    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 authored
    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 authored
    … with default behavior.
  4. @myronmarston
Commits on Jun 3, 2012
  1. @myronmarston

    Refactor constant stubbers a bit.

    myronmarston authored
    This is based on @justinko's suggestions:
    rspec#146 (comment)
  2. @myronmarston

    Replace duplicated README content with a link.

    myronmarston authored
    As per the conversation with @justinko and @dchelimsky:
    rspec#146 (comment)
    
    Note that this link is broken for now because this hasn't
    yet been merged into master. But I figured it was better
    not to use a working link just to the branch since that
    branch will likely be deleted in the near future.
  3. @myronmarston
Commits on Jun 2, 2012
  1. @myronmarston
  2. @myronmarston
  3. @myronmarston

    Remove unused method.

    myronmarston authored
    For #144.
  4. @myronmarston

    Fix a constant stubbing edge case.

    myronmarston authored
    stub_const("A::B::C", whatever) cannot work if A::B is defined
    but A::B is not a module.
    
    For #144.
  5. @myronmarston

    Remove the bang from our #stub! methods.

    myronmarston authored
    I'm not really sure why I used them when I wrote this in rspec-fire;
    given there were not corresponding bang-less methods, it didn't
    really make sense.
    
    For #144.
  6. @myronmarston

    Always restore original constants.

    myronmarston authored
    The original logic from rspec-fire did not restore original constants
    if the user changed them in the example after stubbing them, but after
    talking it over with @dchelimsky and @garyberhnardt we've decided to
    be consistent and always restore them.
    
    For #144.
  7. @myronmarston

    First pass at implementing constant stubbing.

    myronmarston authored
    This is almost copied verbatim from rspec-fire.
    
    For #144.
Commits on May 31, 2012
  1. @dchelimsky

    Merge pull request #145 from pjellis/patch-1

    dchelimsky authored
    [typo] underscore-ize 'ducktype' in README.md
  2. @pje

    `:%s/ducktype/duck_type/g`

    pje authored
Commits on May 25, 2012
  1. @dchelimsky

    Merge pull request #143 from brynary/codeclimate-badge

    dchelimsky authored
    Add Code Climate badge
  2. @brynary

    Add Code Climate badge

    brynary authored
Commits on May 24, 2012
  1. @dchelimsky

    `should_receive(x).at_least(:once).and_return(y)` always returns y ev…

    dchelimsky authored
    …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
Commits on May 23, 2012
  1. @dchelimsky

    Merge pull request #139 from c42engineering/issue124

    dchelimsky authored
    add support for any_instance.should_not_receive
  2. @aakashd
  3. @kaiwren

    Replicated Issue #124

    kaiwren authored
  4. @justinko
  5. @justinko

    changelog [ci skip]

    justinko authored
  6. @justinko
Something went wrong with that request. Please try again.