Skip to content

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
...
Commits on Sep 26, 2010
@andersondias andersondias Fixing typo 1aea395
Commits on Sep 27, 2010
@dchelimsky dchelimsky rename file e1e288b
Commits on Sep 28, 2010
@myronmarston myronmarston 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.
79401b2
Commits on Oct 02, 2010
@graaff graaff Explicitly require rspec version to fix broken rdoc task. b61073f
@nbraem nbraem should pass block to expectation block 7e55300
@dchelimsky dchelimsky update history c94a566
@dchelimsky dchelimsky Revert "Fixed YAML serialization of a stubbed object."
This reverts commit 79401b2.
7499777
@myronmarston myronmarston 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.
793bd34
@dchelimsky dchelimsky Revert "Fixed YAML serialization of a stubbed object."
This reverts commit 793bd34.
8bb5142
@dchelimsky dchelimsky Revert "Revert "Fixed YAML serialization of a stubbed object.""
This reverts commit 7499777.
d03d399
Commits on Oct 03, 2010
@dchelimsky dchelimsky Raise with unexpected args message instead of NoMethodError when a stub
is specified with args but received with different args.
409b2d0
Commits on Oct 05, 2010
@dchelimsky dchelimsky update history 82891fe
@dchelimsky dchelimsky bump version to 2.0.0.rc 361f315
Commits on Oct 09, 2010
@myronmarston myronmarston Added spec demonstrating mock return value for an edge case.
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.
b8135d5
@myronmarston myronmarston Allow specs to run on ruby 1.8.6. 1f3e0f7
Commits on Oct 10, 2010
@dchelimsky dchelimsky words b342ebf
@dchelimsky dchelimsky add a little relish 39803bd
@dchelimsky dchelimsky rename feature dir 822441c
@dchelimsky dchelimsky reorg some features 539b049
@dchelimsky dchelimsky prep for 2.0.0 0238b34
@dchelimsky dchelimsky update rake tasks a696235
Commits on Oct 11, 2010
@dchelimsky dchelimsky fix copy/paste error in history 4830d09
Commits on Oct 18, 2010
@dchelimsky dchelimsky update versions e2ff749
@txus txus 15719 already fixed in stubbed_message_expectations_spec.rb
- Closes #26.
aefe0ff
Commits on Oct 22, 2010
@dchelimsky dchelimsky update dependencies across development repos 739b892
Commits on Oct 23, 2010
@dchelimsky dchelimsky links to docs 6084658
Commits on Nov 06, 2010
@txus txus Fix Marshal serialization of stubbed objects
- Closes #27.
80ee73d
Commits on Nov 07, 2010
@dchelimsky dchelimsky eliminate some warnings 45e2841
@dchelimsky dchelimsky history 31a9e6b
@dchelimsky dchelimsky bump to 2.1.0 506d9f6
Something went wrong with that request. Please try again.