Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: 3-0-maintenance
Commits on Jan 10, 2015
  1. @myronmarston

    Fix changelog link.

    myronmarston authored
    [ci skip]
  2. @myronmarston

    Forwardport 2.99.3 release notes.

    myronmarston authored
    [ci skip]
Commits on Sep 2, 2014
  1. @myronmarston

    Refactor `prepended_modules_of_singleton_class`.

    myronmarston authored
    The `take_while` implementation was a bit obtuse.
    
    It is simpler to just find the index of the singleton
    class and then just return all ancestors before it. This
    ensures that only modules which are prepended onto the
    specific singleton class we are dealing with (and not the
    singleton class of a superclass...) are considered, which was
    the root of the problem causing #745.
  2. @JonRowe @myronmarston

    spec out #745

    JonRowe authored myronmarston committed
    (This has since been solved by #771).
Commits on Sep 1, 2014
  1. @JonRowe

    changelog for #771

    JonRowe authored
    [skip ci]
  2. @JonRowe

    Merge pull request #771 from eugeneius/fix_prepended_module_detection

    JonRowe authored
    Fix prepended module detection on Ruby 2.0
Commits on Aug 19, 2014
  1. @JonRowe

    Merge pull request #760 from rspec/remove_mention_of_any_number_of_times

    JonRowe authored
    Remove mention of any_number_of_times
    Conflicts:
    	Changelog.md
    	lib/rspec/mocks/any_instance/chain.rb
Commits on Aug 14, 2014
  1. @myronmarston

    Release 3.0.4

    myronmarston authored
Commits on Aug 4, 2014
  1. @JonRowe

    Merge pull request #750 from rspec/restore_kind_of_behaviour

    JonRowe authored
    Restore kind_of to match using kind_of? rather than ===
    Conflicts:
    	Changelog.md
    	lib/rspec/mocks/argument_matchers.rb
Commits on Jul 21, 2014
  1. @myronmarston

    3.0.3 release.

    myronmarston authored
  2. @myronmarston

    Forwardport 2.99.2 release notes.

    myronmarston authored
    [ci skip]
Commits on Jul 18, 2014
  1. @myronmarston

    Fix full changelog link.

    myronmarston authored
    [ci skip]
Commits on Jul 12, 2014
  1. @JonRowe

    changelog for #739

    JonRowe authored
  2. @JonRowe

    Merge pull request #739 from cgriego/master

    JonRowe authored
    Don't inadvertently define BasicObject
  3. @myronmarston @JonRowe

    Merge pull request #738 from rspec/reword_dynamic_classes_docs

    myronmarston authored JonRowe committed
    Improve documentation for dynamic classes.
Commits on Jul 7, 2014
  1. @myronmarston
Commits on Jul 1, 2014
  1. @xaviershay @myronmarston

    Remove redundant allow.

    xaviershay authored myronmarston committed
    I originally thought this was required to allow use of the
    `have_received` matcher, but not sure what I was thinking.
Commits on Jun 26, 2014
  1. @myronmarston
  2. @xaviershay

    `have_received` matcher will raise "does not implement" errors correc…

    xaviershay authored
    …tly when
    
    used with verifying doubles and partial doubles.
    
    Conflicts:
    	Changelog.md
    	spec/rspec/mocks/spy_spec.rb
Commits on Jun 21, 2014
  1. @myronmarston
  2. @myronmarston

    Address ruby warning.

    myronmarston authored
    rspec-mocks/spec/rspec/mocks/and_yield_spec.rb:114: warning: assigned but unused variable - default_arg
Commits on Jun 20, 2014
  1. @myronmarston

    3.0.2 release.

    myronmarston authored
    [ci skip]
Commits on Jun 19, 2014
  1. @myronmarston

    Changelog fixups.

    myronmarston authored
    - Remove extra blank line.
    - Fix spelling on Sam’s name.
    
    [ci skip]
  2. @samphippen @myronmarston

    Add a changelog entry for #713

    samphippen authored myronmarston committed
  3. @samphippen @myronmarston

    Fix exact receive counts with ordered

    samphippen authored myronmarston committed
  4. @myronmarston

    Don’t use smart quotes.

    myronmarston authored
    [ci skip]
  5. @myronmarston
  6. @tom025 @myronmarston

    `and_yield` not using default block argument when no argument given.

    tom025 authored myronmarston committed
    Using ruby 2.1.2
    
    ```ruby
    default_arg = Object.new
    obj = Object.new
    
    allow(obj).to receive(:a_message).and_yield
    expect(default_arg).to receive(:bar)
    
    obj.a_message do |receiver=default_arg|
      receiver.bar
    end
    ```
    
    The above code fails with:
    
    ```
     Failure/Error: obj.a_message do |receiver=default_arg|
            #<Object:0x007fe3ac1ce408> yielded || to block with arity of 1
    ```
    
    The block has a arity of 0 or 1 not 1. So I would expect that when no argument
    is given to `and_yield` it would use the default block argument.
  7. @myronmarston
Commits on Jun 18, 2014
  1. @myronmarston

    Remove extra `once`.

    myronmarston authored
Commits on Jun 17, 2014
  1. @myronmarston

    Fix typo.

    myronmarston authored
    [ci skip]
Commits on Jun 12, 2014
  1. @myronmarston

    Add changelog for #711.

    myronmarston authored
    [ci skip]
  2. @samphippen @myronmarston

    Fix edge case that triggered “can't add a new key into hash during it…

    samphippen authored myronmarston committed
    …eration”.
    
    This was triggered when a double was used as a `with` arg
    but was otherwise unused — in this case, there was no mock
    proxy for it, but while verifying one would get created
    (due to internal implementation details). Doing so in a
    `each_value` loop caused the error.
  3. @myronmarston

    2.99.1 release notes.

    myronmarston authored
    [ci skip]
Commits on Jun 9, 2014
  1. @myronmarston

    Merge pull request #705 from rspec/use-maint-branch-3-0

    myronmarston authored
    Use maint branch 3 0
Something went wrong with that request. Please try again.