README in hardmock-1.3.2 vs README in hardmock-1.3.3
- old
+ new
@@ -44,8 +44,27 @@
* GEM or TGZ or ZIP: http://rubyforge.org/frs/?group_id=2742
* Rails plugin: script/plugin install
* SVN access: svn co svn://rubyforge.org/var/svn/hardmock/trunk
* Developer SVN access: svn co svn://developername@rubyforge.org/var/svn/hardmock/trunk
+== Setup for Test::Unit
+
+ require 'hardmock'
+ require 'assert_error' # OPTIONAL: this adds the TestUnit extension 'assert_error'
+
+NOTE: If installed as a Rails plugin, init.rb does this for you... nothing else is needed.
+
+== Setup for RSpec
+
+Get this into your spec helper or environment or Rakefile or wherever you prefer:
+
+ Spec::Runner.configure do |configuration|
+ configuration.include Hardmock
+ configuration.after(:each) {verify_mocks}
+ end
+
+This puts the implicit conveniences into your spec context, like "create_mocks" etc, and also provides for automatic
+"verify_mocks" after each Example is run.
+
== Author
* David Crosby crosby at http://atomicobject.com
* (c) 2006,2007 Atomic Object LLC