Permalink
Commits on Oct 15, 2010
  1. Fix Marshal serialization of stubbed objects

    Josep M. Bach
    Josep M. Bach committed Oct 15, 2010
Commits on Oct 11, 2010
Commits on Oct 10, 2010
  1. update rake tasks

    dchelimsky committed Oct 10, 2010
  2. prep for 2.0.0

    dchelimsky committed Oct 10, 2010
  3. reorg some features

    dchelimsky committed Oct 10, 2010
  4. rename feature dir

    dchelimsky committed Oct 10, 2010
  5. add a little relish

    dchelimsky committed Oct 10, 2010
  6. words

    dchelimsky committed Oct 10, 2010
Commits on Oct 9, 2010
  1. Added spec demonstrating mock return value for an edge case.

    myronmarston authored and dchelimsky committed Oct 9, 2010
    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. bump version to 2.0.0.rc

    dchelimsky committed Oct 5, 2010
  2. update history

    dchelimsky committed Oct 5, 2010
Commits on Oct 3, 2010
  1. Raise with unexpected args message instead of NoMethodError when a stub

    dchelimsky committed Oct 3, 2010
    is specified with args but received with different args.
Commits on Oct 2, 2010
  1. Revert "Fixed YAML serialization of a stubbed object."

    dchelimsky committed Oct 2, 2010
    This reverts commit 793bd34.
  2. Fixed YAML serialization of a stubbed object.

    myronmarston authored and dchelimsky committed Sep 26, 2010
    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.
  3. Revert "Fixed YAML serialization of a stubbed object."

    dchelimsky committed Oct 2, 2010
    This reverts commit 79401b2.
  4. update history

    dchelimsky committed Oct 2, 2010
  5. should pass block to expectation block

    nbraem authored and dchelimsky committed Sep 15, 2010
Commits on Sep 28, 2010
  1. Fixed YAML serialization of a stubbed object.

    myronmarston authored and dchelimsky committed Sep 17, 2010
    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. rename file

    dchelimsky committed Sep 27, 2010
Commits on Sep 26, 2010
  1. Fixing typo

    andersondias authored and dchelimsky committed Sep 24, 2010
Commits on Sep 13, 2010
Commits on Sep 12, 2010
  1. prep for beta.21

    dchelimsky committed Sep 12, 2010
Commits on Sep 11, 2010
  1. add history

    dchelimsky committed Sep 11, 2010
  2. Fixed regression that broke hash format for stub_chain

    dchelimsky committed Sep 11, 2010
    - obj.stub_chain(:a, :b => :c)
  3. Fix regression that broke stub_chain with block format

    dchelimsky committed Sep 11, 2010
    - obj.stub_chain(:a,:b) { :c }
Commits on Sep 8, 2010