Skip to content

Instantly share code, notes, and snippets.

@shepmaster
Created September 23, 2011 03:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shepmaster/1236700 to your computer and use it in GitHub Desktop.
Save shepmaster/1236700 to your computer and use it in GitHub Desktop.
Strange behavior with respond_to matcher
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