Skip to content
This repository
  • 202 commits
  • 91 files changed
  • 18 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.
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.
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)
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.
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.
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.
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 …

- Closes #28.
- Closes #33.
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.
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.
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
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.
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.
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.
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, 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.
Myron Marston Pull gems from github when they are not available locally on the file…
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.
Andy Lindeman Use #method_defined? instead of #instance_methods.include?.
- All specs now pass on MRI 1.8.7 and MRI 1.9.2.
David Chelimsky Expect (failing) that any_instance.should_receive should fail if no
instance is created during the course of an example.
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
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.
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.
David Chelimsky add feature to nav 2c1d323
David Chelimsky prep for 2.6.0.rc1 ce07e70
David Chelimsky comment aruba/cukes in Gemfile eb01c90
David Chelimsky update changelog 07feeb7
Apr 18, 2011
David Chelimsky bump to 2.6.0.rc2 468352c
David Chelimsky update the changelog 11354e2
David Chelimsky reinstate cucumber and aruba ce11e75
Apr 20, 2011
David Chelimsky doc updates f11203d
David Chelimsky minor refactorings 79cf9aa
Apr 23, 2011
Sidu Ponnappa Support multiple calls to any_instance in the same example.
- Closes #54.
Apr 27, 2011
aakash dharmadhikari adding idea files to ignore list d228f34
Apr 30, 2011
David Chelimsky prep for 2.6.0.rc3 b023531
May 01, 2011
David Chelimsky bump to 2.6.0.rc4 0d05d6c
Sidu Ponnappa Merge branch 'master' of e70e741
May 06, 2011
David Chelimsky prep for 2.6.0.rc5 4a02ebc
David Chelimsky prep for rc6 ba78f90
May 12, 2011
David Chelimsky prep for 2.6.0 3f1d77f
May 21, 2011
David Chelimsky ci: relax rake version constraint 3aa7c98
May 22, 2011
Justin Ko Refactor any_instance to be instance agnostic - Closes #58 8e8e62f
Justin Ko Merge branch 'any_instance' 09e53d2
May 24, 2011
Justin Ko ew no more hashitis 7b4fe58
Justin Ko more cleanup f8ba23d
Justin Ko cleanup f492200
May 25, 2011
Justin Ko more cleanup 1da7c41
Justin Ko More module scoping for Ruby 1.9.1 e21b5d1
May 27, 2011
Justin Ko Support for passing a hash to stub for any_instance. Closes #61 a0c14c9
Justin Ko changelog 150a933
Justin Ko combine invocation orders 0e17c96
Justin Ko Use stub, not stub! f523e3c
David Chelimsky dev: add task to remove generated rbc files bcb76da
David Chelimsky bump to rake 0.9 af5a421
May 28, 2011
David Chelimsky could just use Ruby (thx mat813) a8ea8c6
May 30, 2011
Justin Ko spec to verify that an expectation on a method with a default argumen…
…t outputs the correct message.

Closes #62
Justin Ko Restore @kaiwren any_instance implementation. 628eb91
May 31, 2011
Sidu Ponnappa Merge branch 'master' of git:// de93b40
Sidu Ponnappa split any_instance into multiple files and get to a green build as pr…
…ep to replicate issue #58
Sidu Ponnappa Added specs replicating issue #58 27367ce
David Chelimsky dev: constrain cucumber to 0.10.2 since 0.10.3 included breaking changes aff2f95
Jun 01, 2011
David Chelimsky relish docs e8994a7
Jun 09, 2011
Sidu Ponnappa Looks like we've got issue #58 solved except the tests don't match th…
…e exception raised
Mikhail Dieterle fixed bug, when respond_to? returns true for method :to_ary, and then…
…, when this method calls, raise NoMethodError. For example, at this point:
Jun 10, 2011
Mikhail Dieterle Mock doesn't respond to :to_ary 918c32f
Justin Ko Merge pull request #63 from Mik-die/patch-1
respond_to? returns true for :to_ary, but call of :to_ary raises NoMethodError
Justin Ko Don't need "be_" e64fad4
Justin Ko changelog 4e28546
Jun 11, 2011
David Chelimsky ignore .rbc files 0fd2662
David Chelimsky dev: lock gem versions - rake-0.9.2, aruba-0.3.6 c76eb8a
David Chelimsky ci: tell travis to run bin/rake acb2f54
David Chelimsky dev:clean up Rakefile 0e88ecf
David Chelimsky dev: ficks taipoh e96faf3
David Chelimsky dev: add rdoc to Gemfile 41e56e3
David Chelimsky dev: lock the gherkin version 6f75d7f
David Chelimsky dev: remove dep on rdoc 2c55d9a
David Chelimsky dev: git ignore yard artifacts 103238d
David Chelimsky update binstubs 29f470e
Jun 12, 2011
Sidu Ponnappa Merge to master 8f16765
Myron Marston Use a better method of detecting psych.
The psych/syck specs were failing on 1.9.1 on travis ci.  You can compile ruby with the libyaml option but not actually have psych compiled in, apparently.
Jun 13, 2011
David Chelimsky dev: remove autotest/discover 7f0448e
David Chelimsky dev: remove executables from gemspec 42b2edf
David Chelimsky dev: constrain file list in gemspec 7dd57f4
Jun 16, 2011
Andy Lindeman [#58] Ignore the fact that should_receive expectations will fail to b…
…e satisfied in tests that raise errors earlier
Jun 17, 2011
Sidu Ponnappa Merge pull request #4 from alindeman/issue58
Ignore the fact that should_receive expectations will fail to be satisfied in tests that raise errors earlier
Sidu Ponnappa Merge branch 'issue58' of into …
Sidu Ponnappa Fixed broken feature related to multiple method stubs and added anoth…
…er for any_instance.stub.with - this should close Issue #58
Jun 19, 2011
Justin Ko Merge pull request #65 from c42engineering/issue58
Support for any_instance argument matching. Closes #58
Justin Ko changelog b970638
Jun 20, 2011
David Chelimsky ci: exclude local dev gems from travis bundle b9991bd
David Chelimsky dev: bump aruba timeout to 5 seconds f5b226f
Jun 21, 2011
David Chelimsky ruby-1.9.1: use fully qualified names in specs c77dbeb
David Chelimsky dev: remove bin dir from git fae8749
Jun 22, 2011
David Chelimsky bump cukes to 1.0 b6d93c5
Jun 23, 2011
David Chelimsky dev: constrain rcov to ruby 1.8 builds 54ec0a1
Jun 28, 2011
Check for #failure_message_for_should or #failure_message instead of …
…#description to detect a matcher.

- #description optional for a matcher and common in other domains
- one of #failure_message_for_should or #failure_message is mandatory
  - #failure_message is acceptable for backward compatibility
- Closes #64
David Chelimsky Changelog 0e482f4
David Chelimsky move Changelog to project root 153d051
Jul 01, 2011
David Chelimsky dev: reduce warnings aca59bc
David Chelimsky reduce warnings generated by rspec-mocks f04b8bb
Jul 19, 2011
Justin Ko Merge pull request #68 from c42engineering/Issue67
Fixing #67 - unstub support for any_instance
Jul 20, 2011
Sidu Ponnappa Fixing #67 - unstub support for any_instance 0a7cde5
Aug 14, 2011
Sidu Ponnappa Issue #70 add support for #stub_chain to any_instance c6af9f9
Justin Ko Merge pull request #71 from c42engineering/issue70
Issue #70: add support for #stub_chain to any_instance
Justin Ko changelog 82e4ff9
Aug 19, 2011
alextk use __send__ method instead of send method, to cover cases when targe…
…t object send method is overridden to expose business api
Justin Ko Merge pull request #74 from alextk/master
Use __send__ method instead of send
Justin Ko changelog 63ed352
Aug 20, 2011
Craig Buchek document stubbing methods with method names and return values passed …
…as a hash
Aug 24, 2011
David Chelimsky Merge pull request #75 from booch/master
Document stubbing with methods / return values passed as a hash
David Chelimsky doc tweaks/clarification cfa7a96
Aug 26, 2011
Attila Domokos Add new feature for receive_counts on mocks 52daacc
Sep 01, 2011
Attila Domokos Removing incorrect description 14c52b9
Attila Domokos Adding new feature - stubbing with arguments 45b3872
Sep 02, 2011
Jim Deville add argument_matchers features for explicit arguments, anything, any_…
…args, and no_args
Jim Deville Merge branch 'master' of b08c75e
David Chelimsky Merge pull request #77 from adomokos/add_receive_count_feature
Add new feature for receive_counts on mocks
Sep 29, 2011
David Chelimsky improve explanation as to why we raise NoMethodError on to_ary b0ea68d
David Chelimsky ci: stick to rubies supported by travis 66d5295
Oct 09, 2011
David Chelimsky Merge pull request #80 from adomokos/add_stub_with_arguments_feature
Adding new cuke feature - stubbing with arguments
David Chelimsky Tweak the "stub with arguments" cuke
- #80.
David Chelimsky Merge pull request #81 from jredville/master
add argument_matchers features for explicit arguments, anything, any_args, and no_args
David Chelimsky nav for new features 1018eaf
David Chelimsky this has been moved to features/argument_matchers 3e1bbba
David Chelimsky bump to 2.7.0.rc1 3934ef4
David Chelimsky bump relish version to ~> 0.5.0 1c128a3
David Chelimsky dev: fix relish task 2f7706a
David Chelimsky fix link to full changelog 53b7427
Oct 11, 2011
David Chelimsky Raise a helpful message on any_instance.stub! (use stub instead)
- Closes #57.
David Chelimsky rdoc tweaks f0f9d4a
Oct 15, 2011
Sidu Ponnappa Bug fix: any_instance now properly restores private methods
- Closes #86.
- Fixes #85.
David Chelimsky Changlog for #85 and #86. b3832f5
Oct 16, 2011
David Chelimsky cleanup and add some rdoc f646743
David Chelimsky update changelog for 2.7.0 release 6a7c51a
David Chelimsky bump version to 2.7.0 19b5646
David Chelimsky fix formatting problems in the changelog fdd3602
Oct 25, 2011
Justin Ko Set default order to :random c3728d5
Oct 29, 2011
Matijs van Zuijlen Turn on warnings for spec task. 96640b0
Oct 30, 2011
Matijs van Zuijlen Fix 'assigned but unused variable' warnings in lib. 63fb2bc
Matijs van Zuijlen Fix 'assigned but unused variable' warnings in spec. c3c8a97
David Chelimsky Merge pull request #88 from mvz/no-warnings
Fix warnings
David Chelimsky dev: fix ruby-debug version (and deps) for 1.9.2 aabc5af
David Chelimsky changelog for #88 32f635f
David Chelimsky changelog tweaks 5244b17
Nov 06, 2011
David Chelimsky changelog 349f127
David Chelimsky bump to 2.8.0.rc1 7fa5ae6