Permalink
Commits on Jul 10, 2012
Commits on Jul 9, 2012
  1. Add verify_constant_names config option.

    When this is set to true, an error will be raised if a given constant name is undefined.
    myronmarston committed Jul 9, 2012
  2. Merge pull request #17 from xaviershay/remove_stub_const

    Remove stub_const
    myronmarston committed Jul 9, 2012
  3. RSpec 2.11 is out.

    myronmarston committed Jul 9, 2012
Commits on Jul 4, 2012
  1. 0.5.0

    committed Jul 4, 2012
  2. Inline custom implement matcher.

    This drops rspec-fire overhead roughly from 100% to around 20%
    committed Jul 4, 2012
  3. Add benchmark script.

    committed Jul 4, 2012
Commits on Jun 11, 2012
  1. Update rspec-fire to work with port of stub_const in rspec-mocks.

    rspec/rspec-mocks#146
    
    Note that this removes support for rspec 2.0...2.10
    (and rspec 2.11 isn't out yet), but there's no reason to
    maintain stub_const logic here now that it has been ported
    to rspec-mocks, and if you're updating to the latest rspec-fire
    than we assume you're probably doing the same with rspec.
    myronmarston committed Jun 11, 2012
  2. Lock to master branch of rspec-mocks for now.

    Once rspec 2.11 is released w/ the port of stub_const from here, we can change this so that it isn't locked to the git repo.
    myronmarston committed Jun 11, 2012
Commits on May 13, 2012
  1. Merge pull request #15 from myronmarston/allow_unloaded_class_and_ins…

    …tance_doubling
    
    Allow both instance and class doubles for unloaded classes.
    committed May 13, 2012
Commits on May 9, 2012
  1. Allow both instance and class doubles for unloaded classes.

    Previously, if you used both fire_double("Foo") and fire_replaced_class_double("Foo"), and Foo was not defined, stubbing or mocking a method on the fire double would fail because ConstantStubber.original_value_for returned nil for "Foo" (since it was originally unloaded), but the constant lookup would succeed and it would try to verify the implementation against the class stub.
    
    Now, ConstantStubber.find_original_value_for yields if the given class has been stubbed, and the value it yields can be nil if it was originally unloaded.  This allows us to support this edge case.
    myronmarston committed May 9, 2012
Commits on Apr 29, 2012
Commits on Apr 1, 2012
  1. 0.4.0 release

    committed Apr 1, 2012
  2. Merge pull request #13 from myronmarston/allow_fire_double_and_class_…

    …double_for_same_class
    
    Allow fire double and class double for same class
    committed Apr 1, 2012
  3. Merge pull request #11 from myronmarston/ignore_block_arg

    Don't count block params when determining the max arity.
    committed Apr 1, 2012
Commits on Mar 29, 2012
  1. Merge pull request #12 from myronmarston/fix_travis_build

    Fix travis build
    committed Mar 29, 2012
Commits on Mar 28, 2012
  1. Use original const value when checking implementation for fire_double.

    This allows fire_double and fire_replaced_class_double to both
    be used in the same example with the same doubled class.
    myronmarston committed Mar 28, 2012
  2. Fix specs on 1.8.7.

    The #stub! specs were generating failures:
    
      received unexpected message :stub
    
    Changing from an alias to a direct delegation fixed the problem.  Weird.  I don't understand that at all :(.
    myronmarston committed Mar 28, 2012
  3. Revert "Bump minimum rspec requirement to 2.6."

    This reverts commit 1b3ba96.
    
    This commit didn't have the intended affect, anyway, and is no longer
    needed.
    myronmarston committed Mar 28, 2012
  4. Ensure #stub! works (as an alias for #stub).

    This should fix the build on rspec 2.5 and 2.6 as well.
    myronmarston committed Mar 28, 2012
  5. Don't count block params when determining the max arity.

    Before this change, the following worked improperly:
    
      class A
        def m(a, &b)
        end
      end
    
      fire_double("A").stub(:m).with(:two, :arguments)
    
    The block arg was counted previously so this passed even though it should not.
    myronmarston committed Mar 28, 2012
  6. Bump minimum rspec requirement to 2.6.

    2.5 passes on my machine, but not on travis, and I have no inclination
    to investigate further. Hopefully this will just make the issue go away.
    committed Mar 28, 2012
Commits on Mar 27, 2012
  1. Merge pull request #10 from freelancing-god/hash-shortcut

    Allow for RSpec's hash shortcuts with the stub method.
    committed Mar 27, 2012
Commits on Mar 24, 2012
  1. Merge pull request #9 from myronmarston/allow_stub_hash

    Allow `fire_double("Class", :foo => 17)` syntax.
    committed Mar 24, 2012
Commits on Mar 23, 2012
  1. Allow `fire_double("Class", :foo => 17)` syntax.

    The ivars @__checked_methods and @__method_finder must be set before supering, so that when the superclass initializer calls #stub with each given message, the implementation can be checked.  Previously, you would get a 'nil is not a symbol' error.
    myronmarston committed Mar 23, 2012
  2. Merge pull request #8 from myronmarston/splat_args

    Handle default args and splat args properly.
    committed Mar 23, 2012