Skip to content
This repository
  • 82 commits
  • 65 files changed
  • 2 comments
  • 9 contributors
Oct 17, 2010
David Chelimsky update versions e2ff749
Oct 18, 2010
Josep M. Bach 15719 already fixed in stubbed_message_expectations_spec.rb
- Closes #26.
aefe0ff
Oct 22, 2010
David Chelimsky update dependencies across development repos 739b892
David Chelimsky links to docs 6084658
Nov 06, 2010
Josep M. Bach Fix Marshal serialization of stubbed objects
- Closes #27.
80ee73d
David Chelimsky eliminate some warnings 45e2841
Nov 07, 2010
David Chelimsky history 31a9e6b
David Chelimsky bump to 2.1.0 506d9f6
David Chelimsky update relish task d7184c7
David Chelimsky update versions for development ed672c6
Nov 17, 2010
David Chelimsky tweak (c) beffc1e
Nov 19, 2010
David Chelimsky Added "rspec/mocks/standalone"
- useful in irb to explore the framework
- also eliminated two require calls per example when using rspec-mocks
  with rspec-core - huge performance boost (20% range)
be136a4
Nov 21, 2010
Gioele Method calls with expanded arrays require parentheses
This fixes the following warning:

    lib/rspec/mocks/message_expectation.rb:43: warning: `*' interpreted
    as argument prefix

- Closes #30.
46e8577
David Chelimsky History 8d35da8
Nov 25, 2010
David Chelimsky explain README links to documentation 7b1a6a3
David Chelimsky upgrade to cucumber 0.9.4 6bde64b
Nov 26, 2010
David Chelimsky guard _this_ 880a2ae
David Chelimsky Fix bug where obj.should_receive(:foo).with(stub.as_null_object) would
pass with a false positive.

- Closes #233.
1ba73c9
Nov 28, 2010
David Chelimsky more history 15b9327
David Chelimsky prep for 2.2 release 1024474
David Chelimsky bump version to 2.2 280af60
Nov 29, 2010
David Chelimsky links 58cc515
Dec 01, 2010
David Chelimsky bump to 2.3.0.pre a063713
Dec 06, 2010
David Chelimsky add example of explicit stub after as_null_object 80dbde5
Dec 11, 2010
Myron Marston Fix our Marshal extension so that it does not interfere with objects …
…that have their own @mock_proxy instance variable.

Since our Marshal extension is loaded globally and affects every Marshal.dump call, we need to be extra careful not to unintentionally affect other things that rely on it.

- Closes #29.
6da62dc
David Chelimsky history e16666a
Dec 12, 2010
David Chelimsky align Gemfiles across rspec dev repos 301d1c9
David Chelimsky prep for 2.3.0 release dd336af
Dec 13, 2010
David Chelimsky bump version to 2.4.0.pre 89fc6cb
Dec 18, 2010
David Chelimsky dev-support: update relish task ec53f43
Dec 20, 2010
David Chelimsky reorganize the nav for relish 3c9bf80
Dec 29, 2010
David Chelimsky syntax cheat sheets for stubs and messae expectations c42ea70
Dec 31, 2010
David Chelimsky fix changelog link 0358d7f
Jan 02, 2011
David Chelimsky prep for 2.4.0 release 866f34a
Jan 16, 2011
Damian Nurzyński Fix bug: Message expectation counts don't work in combination with a …
…stub

- Closes #28.
- Closes #33.
dc1044a
David Chelimsky update history 4e7ea7d
Jan 17, 2011
David Chelimsky docs 38a6295
Feb 05, 2011
Josep M. Bach Fix failure message when message received with incorrect args.
- Closes #34.
77844a3
David Chelimsky changelog eaa4468
Diego Elio Pettenò Don't force cucumber presence on Rakefile.
Only define the cucumber tasks if cucumber is available, allowing for the
Rakefile to work without Cucumber installed.

Note that Cucumber is still part of the bundle, so unless you're
disabling bundler as well, this patch has no effect.

See #35 for background.

- Closes #35.
24f8354
David Chelimsky doc tweaks f7e2297
David Chelimsky prep for 2.5 release a6c98bd
Feb 12, 2011
David Chelimsky regexps in Guardfile 5ac6d83
David Chelimsky fix bug in which multiple chains with shared messages ending in hashes
failed to return the correct value

- also documented stub_chain(:a, :b => :c) format in feature
ca2d837
Feb 20, 2011
Myron Marston Allow users to specify return values by passing a block to #at_least,…
… #at_most and #exactly.

- @mock.should_receive(:to_s).at_least(:once) { "return val" }
- @mock.should_receive(:to_s).at_most(:once) { "return val" }
- @mock.should_receive(:to_s).exactly(:once) { "return val" }

Each of the above now work but previously returned nothing since the block was discarded.

Closes #40.
0f09860
Myron Marston Fix yaml serialization when using Psych.
Without these changes, I was getting SystemStackErrors when calling YAML.dump(stubbed_object) or stubbed_object.to_yaml.

To test this, you may need to reinstall ruby 1.9.2 with psych support.  On OSX with homebrew and rvm, this will do the trick:

brew install libyaml
rvm install ruby-1.9.2 --with-libyaml-dir=/usr/local

Closes #36.
8ce0c12
Feb 26, 2011
Myron Marston Don't patch Psych.dump unless Psych is loaded and responds to #dump.
This fixes errors with running the specs on 1.9.2 w/o psych support compiled in.
4b6774d
David Chelimsky docs 6551f1a
David Chelimsky move some specs around 5f02fb6
Mar 06, 2011
Justin Ko #as_null_object cucumber feature f89af24
Mar 07, 2011
David Chelimsky format doc ef127a5
Mar 23, 2011
Sidu Ponnappa Not so dependent on a particular ruby implementation. Closes #44 Closes 8e2c1a2
Mar 24, 2011
David Chelimsky upgrade cucumber and aruba 20e9601
Mar 28, 2011
David Chelimsky update a couple of specs to more 21st century syntax 82c5d66
David Chelimsky Treat block passed to `with` as a dynamic matcher or a return value, but
not both.

This fixes issue #254 in rspec-core.

The `with` method accepts two forms:

  foo.should_receive(:bar).with(:arg) { ... }
  foo.should_receive(:bar).with { ... }

In the first form, we expect foo.bar(:arg), and when it is received it
returns the value returned by eval'ing the block.

In the second form, the block itself is treated as an argument matcher.
The bug was that it was being eval'd twice because it was being treated
as both an argument matcher and a computed return value.
042784a
Myron Marston Pull gems from github when they are not available locally on the file…
…system.
fdd4d3d
Myron Marston Add travis config file. 52356e5
Mar 29, 2011
Andy Lindeman Add feature for simple any_instance.stub use case 1f64f6d
Andy Lindeman Add feature for any_instance.should_receive use case d0d5e99
Mar 30, 2011
Sidu Ponnappa Add support for any_instance:
- MyClass.any_instance.stub(:m)
- MyClass.any_instance.should_receive(:m)
- includes stub and mock APIs including
  - and_return, and_raise, and_yield
  - once, twice, exactly, any_number_of_times, never, at_least, at_most

- Closes #46.
- Closes #10.
699a5c2
Andy Lindeman Use #method_defined? instead of #instance_methods.include?.
- All specs now pass on MRI 1.8.7 and MRI 1.9.2.
b2d968a
David Chelimsky Expect (failing) that any_instance.should_receive should fail if no
instance is created during the course of an example.
099b74e
Sidu Ponnappa Got exactly one instance done except for never and any_number_of_times 9483c14
Sidu Ponnappa Completed handling never and any_number_of_times 81108f0
Sidu Ponnappa Fixed ordering of missed method names b48d777
Mar 31, 2011
David Chelimsky Changlog and some minor tweaks
- removed unnecessary conditional
- reduced nesting in any_instance_spec
2d7caa5
Andy Lindeman Add new features to .nav file (for Relish). Closes #50 5deee72
Apr 01, 2011
David Chelimsky no need for begin/rescue in this example 646ff61
Apr 03, 2011
Myron Marston Only build with the rubies travis has available. ca9c16b
Apr 10, 2011
David Chelimsky update Gemfile to address build issues with 1.9.1 3e31596
David Chelimsky more rubies for travis 877b268
David Chelimsky Dev: fully qualify class names for 1.9.1 9ae8c92
David Chelimsky add travis build status 1b59f2f
Apr 17, 2011
Sidu Ponnappa Ensure that any_instance expectations are properly cleaned up between…
… examples.

- Closes #52.
7bf5851
David Chelimsky some refactoring of any_instance ef65d36
David Chelimsky Only reset any_instance recorder once. 189fda0
David Chelimsky fix scoping issue in spec for 1.9.1 b8d9800
David Chelimsky words in features 66737e5
David Chelimsky Mock#to_ary raises a NoMethodError
- supports Array#flatten with a Mock in the Array
- Closes #31.
1907cf9
David Chelimsky add feature to nav 2c1d323
David Chelimsky prep for 2.6.0.rc1 ce07e70
David Chelimsky comment aruba/cukes in Gemfile eb01c90