Permalink
Browse files

doc updates

  • Loading branch information...
dchelimsky committed Apr 20, 2011
1 parent ce11e75 commit f11203d233ba2c2ef5220fca3a600f9b7c991f72
Showing with 11 additions and 3 deletions.
  1. +1 −1 features/Changelog.md
  2. +10 −2 features/Upgrade.md
View
@@ -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
@@ -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"`

0 comments on commit f11203d

Please sign in to comment.