features/fakes/fake_objects.feature in bogus-0.0.4 vs features/fakes/fake_objects.feature in bogus-0.1.0
- old
+ new
@@ -57,25 +57,9 @@
Student.learn(library).should be_true
end
end
"""
- Scenario: Fakes have null-object semantics
- Then spec file with following content should pass:
- """ruby
- describe "library fake" do
- fake(:library)
-
- it "returns self from all methods" do
- library.checkout("hello").should == library
- end
-
- it "makes method chaining possible" do
- library.checkout("hello").return_book("world").should == library
- end
- end
- """
-
Scenario: Taking the guesswork out of finding a class to copy
Then spec file with following content should pass:
"""ruby
class PublicLibrary
def checkout(book)