README in rr-0.3.3 vs README in rr-0.3.4
- old
+ new
@@ -57,9 +57,14 @@
stub.probe(view).render(:partial => "user_info") do |html|
html.should include("Joe Smith")
html
end
+== Instance of Doubles
+Put double scenarios on instances of a Class.
+
+ mock.instance_of(User).valid? {false}
+
== Block Syntax
script = MyScript.new
mock(script) do |m|
m.system("cd #{RAILS_ENV}") {true}
m.system("rake foo:bar") {true}