Permalink
Commits on Sep 3, 2012
  1. 1.1.3

    xaviershay committed Sep 3, 2012
Commits on Aug 31, 2012
Commits on Aug 11, 2012
  1. 1.1.2

    xaviershay committed Aug 11, 2012
  2. Merge pull request #24 from xaviershay/handle_inherited_constants

    xaviershay committed Aug 11, 2012
    Fix use of const_get/const_defined? to handle undefined consts like Foo::Hash
  3. Fix use of const_get/const_defined? to handle undefined consts like F…

    myronmarston committed Aug 11, 2012
    …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.
  4. Remove RSpec 2.8 compatibility shim.

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

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

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

    pat committed Jul 14, 2012
    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.
Commits on Jul 12, 2012
  1. Merge pull request #21 from bryanwoods/master

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

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

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

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

    xaviershay committed Jul 9, 2012
  2. Add verify_constant_names config option.

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

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

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

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

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

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

    myronmarston committed Jun 11, 2012
    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.
  2. Lock to master branch of rspec-mocks for now.

    myronmarston committed Jun 11, 2012
    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.
Commits on May 13, 2012
  1. Merge pull request #15 from myronmarston/allow_unloaded_class_and_ins…

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

    myronmarston committed May 9, 2012
    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.
Commits on Apr 29, 2012
Commits on Apr 1, 2012
  1. 0.4.0 release

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

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

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

    xaviershay committed Mar 29, 2012
    Fix travis build