Created
September 3, 2009 08:29
-
-
Save benhoskings/180188 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Foo | |
def done? | |
false | |
end | |
def indirect_done? | |
done? | |
end | |
end | |
describe "Foo#done?" do | |
before { | |
foo.stub!(:done?).and_return(true) | |
} | |
it "is behaving strangely" do | |
foo.done? # => true | |
foo.indirect_done? # => false | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment