Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Aug 11, 2012
  1. @myronmarston

    Fix use of const_get/const_defined? to handle undefined consts like F…

    myronmarston authored
    …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.
  2. @myronmarston

    Remove RSpec 2.8 compatibility shim.

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

    authored
  2. Merge pull request #23 from freelancing-god/string_methods

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

    Handle strings as well as symbols for method stubs.

    pat authored
    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

    authored
    Adds MIT License
  2. @bryanwoods

    Adds MIT License

    bryanwoods authored
Commits on Jul 11, 2012
  1. 1.1.0

    authored
Commits on Jul 10, 2012
  1. @myronmarston

    Merge pull request #19 from xaviershay/verify_constant_names

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

    authored
  2. @myronmarston

    Add verify_constant_names config option.

    myronmarston authored
    When this is set to true, an error will be raised if a given constant name is undefined.
  3. @myronmarston
  4. @myronmarston

    RSpec 2.11 is out.

    myronmarston authored
Commits on Jul 4, 2012
  1. 0.5.0

    authored
  2. Inline custom implement matcher.

    authored
    This drops rspec-fire overhead roughly from 100% to around 20%
  3. Add benchmark script.

    authored
Commits on Jun 11, 2012
  1. @myronmarston

    Update rspec-fire to work with port of stub_const in rspec-mocks.

    myronmarston authored
    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. @myronmarston

    Lock to master branch of rspec-mocks for now.

    myronmarston authored
    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…

    authored
    …tance_doubling
    
    Allow both instance and class doubles for unloaded classes.
Commits on May 9, 2012
  1. @myronmarston

    Allow both instance and class doubles for unloaded classes.

    myronmarston authored
    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

    authored
  2. Merge pull request #13 from myronmarston/allow_fire_double_and_class_…

    authored
    …double_for_same_class
    
    Allow fire double and class double for same class
  3. Merge pull request #11 from myronmarston/ignore_block_arg

    authored
    Don't count block params when determining the max arity.
Commits on Mar 29, 2012
Commits on Mar 28, 2012
  1. @myronmarston
  2. @myronmarston

    Use original const value when checking implementation for fire_double.

    myronmarston authored
    This allows fire_double and fire_replaced_class_double to both
    be used in the same example with the same doubled class.
  3. @myronmarston

    Fix specs on 1.8.7.

    myronmarston authored
    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 :(.
  4. @myronmarston

    Revert "Bump minimum rspec requirement to 2.6."

    myronmarston authored
    This reverts commit 1b3ba96.
    
    This commit didn't have the intended affect, anyway, and is no longer
    needed.
Something went wrong with that request. Please try again.