Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tag: v2.3.0
Commits on Oct 9, 2010
  1. @myronmarston @dchelimsky

    Allow specs to run on ruby 1.8.6.

    myronmarston authored dchelimsky committed
  2. @myronmarston @dchelimsky

    Added spec demonstrating mock return value for an edge case.

    myronmarston authored dchelimsky committed
    When a method has been stubbed previously to return a certain value (say, in a before(:each)), and then mocked w/o a return value (say, in a spec, to ensure a method was called), the stubbed value should still be returned.
Commits on Oct 5, 2010
  1. @dchelimsky

    bump version to 2.0.0.rc

    dchelimsky authored
  2. @dchelimsky

    update history

    dchelimsky authored
Commits on Oct 3, 2010
  1. @dchelimsky

    Raise with unexpected args message instead of NoMethodError when a stub

    dchelimsky authored
    is specified with args but received with different args.
Commits on Oct 2, 2010
  1. @dchelimsky
  2. @dchelimsky
  3. @myronmarston @dchelimsky

    Fixed YAML serialization of a stubbed object.

    myronmarston authored dchelimsky committed
    Previously, the mock proxy would be serialized when #to_yaml is called on a stubbed object.  The mock proxy includes a reference to a proc.  When the yaml string is deserialized with YAML.load, you'd get an "allocator undefined for Proc" TypeError.
    
    This fix prevents stubbing from setting any new instance variables on the stubbed object, so that the YAMl serialization is not affected.
  4. @dchelimsky
  5. @dchelimsky

    update history

    dchelimsky authored
  6. @nbraem @dchelimsky

    should pass block to expectation block

    nbraem authored dchelimsky committed
  7. @graaff @dchelimsky
Commits on Sep 28, 2010
  1. @myronmarston @dchelimsky

    Fixed YAML serialization of a stubbed object.

    myronmarston authored dchelimsky committed
    Previously, the mock proxy would be serialized when #to_yaml is called on a stubbed object.  The mock proxy includes a reference to a proc.  When the yaml string is deserialized with YAML.load, you'd get an "allocator undefined for Proc" TypeError.
    
    This fix prevents the mock proxy from being serialized, so that the object is serialized the same as it would if it hadn't been stubbed.
    
    Note that Marshaling also breaks when Marshal.dump is passed a stubbed object, with a "singleton can't be dumped" error.  I'm not yet sure how to fix this, so I've left a pending spec for it.
Commits on Sep 27, 2010
  1. @dchelimsky

    rename file

    dchelimsky authored
Commits on Sep 26, 2010
  1. @andersondias @dchelimsky

    Fixing typo

    andersondias authored dchelimsky committed
Commits on Sep 13, 2010
  1. @dchelimsky
  2. @dchelimsky
  3. @dchelimsky
Commits on Sep 12, 2010
  1. @dchelimsky
  2. @dchelimsky

    prep for beta.21

    dchelimsky authored
  3. @dchelimsky
Commits on Sep 11, 2010
  1. @dchelimsky
  2. @dchelimsky

    add history

    dchelimsky authored
  3. @dchelimsky

    Fixed regression that broke hash format for stub_chain

    dchelimsky authored
    - obj.stub_chain(:a, :b => :c)
  4. @dchelimsky

    Fix regression that broke stub_chain with block format

    dchelimsky authored
    - obj.stub_chain(:a,:b) { :c }
Commits on Sep 8, 2010
  1. @dchelimsky
  2. @dchelimsky
Commits on Sep 3, 2010
  1. @myronmarston

    Remove dependency on jeweler.

    myronmarston authored
    - Allows us to have an always-up-to-date gemspec.
    - Use bundler's build/install/release rake tasks rather than jeweler's.
    - One less development dependency.
    - No need for a separate VERSION file.
Commits on Sep 1, 2010
  1. @myronmarston
Commits on Aug 31, 2010
  1. @myronmarston
  2. @myronmarston

    Removed unused file.

    myronmarston authored
    The Macros module is also defined in spec_helper.rb.
  3. @dchelimsky
  4. @justinko @dchelimsky

    stub_chain.feature

    justinko authored dchelimsky committed
    - Closes #13.
Commits on Aug 24, 2010
  1. @dchelimsky

    bump version to beta.20

    dchelimsky authored
Commits on Aug 14, 2010
  1. @justinko @dchelimsky

    Remove 'should' from example docstrings

    justinko authored dchelimsky committed
    - Closes #11.
Something went wrong with that request. Please try again.