Skip to content
Commits on Sep 27, 2012
  1. @myronmarston
Commits on Sep 3, 2012
  1. 1.1.3

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

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

    Fix use of const_get/const_defined? to handle undefined consts like Foo::Hash
    committed Aug 10, 2012
  3. @myronmarston

    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 10, 2012
  4. @myronmarston

    Remove RSpec 2.8 compatibility shim.

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

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

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

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

    Adds MIT License
    committed Jul 11, 2012
  2. @bryanwoods

    Adds MIT License

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

    committed Jul 10, 2012
Commits on Jul 10, 2012
  1. @myronmarston

    Merge pull request #19 from xaviershay/verify_constant_names

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

    committed Jul 9, 2012
  2. @myronmarston

    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 8, 2012
  3. @myronmarston

    Merge pull request #17 from xaviershay/remove_stub_const

    Remove stub_const
    myronmarston committed Jul 8, 2012
  4. @myronmarston

    RSpec 2.11 is out.

    myronmarston committed Jul 8, 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. @myronmarston

    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 10, 2012
  2. @myronmarston

    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 10, 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 12, 2012
Commits on May 9, 2012
  1. @myronmarston

    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
Something went wrong with that request. Please try again.