Browse files

fixed inconsistent example code in readme

  • Loading branch information...
1 parent e129429 commit c0d6a9b5803bf3d0051b82ca8a731b26f20a15fb @ronhopper committed Jun 20, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 README.md
View
8 README.md
@@ -127,8 +127,8 @@ require 'my_app/widget'
describe MyApp::Widget do
it "does something with my external class" do
- MyApp::MyExternalClass.should_receive(:foo) { :bar }
- subject.do_something
+ MyApp::MyExternalClass.stub(foo: "bar")
+ subject.do_something.should == "bar"
end
end
```
@@ -146,7 +146,7 @@ end
describe MyApp::Widget do
it "does something with my external class" do
MyApp::MyExternalClass.stub(foo: "bar")
- subject.do_something.should == :bar
+ subject.do_something.should == "bar"
end
end
```
@@ -161,7 +161,7 @@ require 'my_app/widget'
describe MyApp::Widget do
it "does something with my external class" do
Jeeves.stub(my_external_class: stub(foo: "bar"))
- subject.do_something.should == :bar
+ subject.do_something.should == "bar"
end
end
```

0 comments on commit c0d6a9b

Please sign in to comment.