Created
September 23, 2011 03:37
-
-
Save shepmaster/1236700 to your computer and use it in GitHub Desktop.
Strange behavior with respond_to matcher
This file contains hidden or 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
describe "should respond_to" do | |
it "works the same as respond_to?" do | |
group = RSpec::Core::ExampleGroup.describe {} | |
a = group.new | |
a.respond_to?(:be).should be_true | |
a.should respond_to(:be) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment