Permalink
Commits on Aug 11, 2012
  1. Fix use of const_get/const_defined? to handle undefined consts like F…

    …oo::Hash.
    
    When you name a nested constant that ends in a name that matches a top-level constant (such as "Foo::Hash"), rspec-fire was verifying the presence of a stubbed method on ::Hash if "Foo::Hash" was not defined. 1.9's const_get/const_defined? accepts a flag argument to have it ignore inherited/top-level constants, but 1.8 doesn't accept this argument, so we have to conditionally define methods to handle this properly.
    myronmarston committed Aug 11, 2012
  2. Remove RSpec 2.8 compatibility shim.

    We're only supporting 2.11+ now that it includes constant stubbing support.
    myronmarston committed Aug 11, 2012
Commits on Jul 15, 2012
  1. 1.1.1

    committed Jul 15, 2012
  2. Merge pull request #23 from freelancing-god/string_methods

    Handle strings as well as symbols for method stubs.
    committed Jul 15, 2012
Commits on Jul 14, 2012
  1. Handle strings as well as symbols for method stubs.

    Yes, I usually write my method stubs using symbols, but wandered from that path with some simple metaprogramming. RSpec's fine with strings, but rspec-fire wasn't when it came to running my full test suite - it insisted the methods did not exist on the real classes.
    pat committed Jul 14, 2012
Commits on Jul 12, 2012
  1. Merge pull request #21 from bryanwoods/master

    Adds MIT License
    committed Jul 12, 2012
  2. Adds MIT License

    bryanwoods committed Jul 12, 2012
Commits on Jul 11, 2012
  1. 1.1.0

    committed Jul 11, 2012
Commits on Jul 10, 2012
  1. Merge pull request #19 from xaviershay/verify_constant_names

    Add verify_constant_names config option.
    myronmarston committed Jul 10, 2012
Commits on Jul 9, 2012
  1. 1.0.0

    committed Jul 9, 2012
  2. 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
  3. Merge pull request #17 from xaviershay/remove_stub_const

    Remove stub_const
    myronmarston committed Jul 9, 2012
  4. 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