Permalink
Switch branches/tags
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

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

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

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

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

    dchelimsky committed Oct 2, 2010
Commits on Sep 28, 2010
  1. Fixed YAML serialization of a stubbed object.

    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.
    myronmarston committed with dchelimsky Sep 17, 2010
Commits on Sep 27, 2010
  1. rename file

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

    andersondias committed with dchelimsky Sep 24, 2010
Commits on Sep 13, 2010
  1. bump version to 2.0.0.beta.22

    dchelimsky committed Sep 13, 2010
Commits on Sep 12, 2010
  1. bump version to 2.0.0.beta.21

    dchelimsky committed Sep 12, 2010
  2. prep for beta.21

    dchelimsky committed Sep 12, 2010
Commits on Sep 11, 2010
  1. fix changelog link in History

    dchelimsky committed Sep 11, 2010
  2. add history

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

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

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

    - 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.
    myronmarston committed Sep 2, 2010
Commits on Sep 1, 2010
Commits on Aug 31, 2010
  1. Removed unused file.

    The Macros module is also defined in spec_helper.rb.
    myronmarston committed Aug 31, 2010
  2. stub_chain.feature

    - Closes #13.
    justinko committed with dchelimsky Aug 27, 2010
Commits on Aug 24, 2010
  1. bump version to beta.20

    dchelimsky committed Aug 24, 2010
Commits on Aug 14, 2010
  1. Remove 'should' from example docstrings

    - Closes #11.
    justinko committed with dchelimsky Aug 14, 2010
Commits on Aug 10, 2010
  1. ignore .bundle

    dchelimsky committed Aug 10, 2010
Commits on Aug 9, 2010
  1. splat _this_

    dchelimsky committed Aug 9, 2010