Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

doc updates

  • Loading branch information...
commit f11203d233ba2c2ef5220fca3a600f9b7c991f72 1 parent ce11e75
@dchelimsky dchelimsky authored
Showing with 11 additions and 3 deletions.
  1. +1 −1  features/Changelog.md
  2. +10 −2 features/Upgrade.md
View
2  features/Changelog.md
@@ -1,6 +1,6 @@
### 2.6.0.rc2 / 2011-04-18
-[full changelog](http://github.com/rspec/rspec-mocks/compare/v2.5.0...v2.6.1.rc2)
+[full changelog](http://github.com/rspec/rspec-mocks/compare/v2.5.0...v2.6.0.rc2)
* Enhancements
* Add support for any_instance.stub and any_instance.should_receive (Sidu
View
12 features/Upgrade.md
@@ -1,6 +1,14 @@
-# rspec-mocks-2.2
+## rspec-mocks-2.6
-## What's new
+### `any_instance`
+
+Set method stubs and message expectations on any instance of a class:
+
+ class Foo; end
+ Foo.any_instance.stub(:bar) { 'bar' }
+ Foo.new.bar # => 'bar'
+
+## rspec-mocks-2.2
### `require "rspec/mocks/standalone"`
Please sign in to comment.
Something went wrong with that request. Please try again.