Skip to content

Instantly share code, notes, and snippets.

/.rb Secret

Created September 21, 2015 15:34
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 anonymous/e8dcad79ded2c4dc35b7 to your computer and use it in GitHub Desktop.
Save anonymous/e8dcad79ded2c4dc35b7 to your computer and use it in GitHub Desktop.
class SomeCrazyClassThatHasNothingToDoWithOurSpec; end
module MyMod
def foo; end
end
describe MyMod do
it{ is_expected.to respond_to :foo } #=> fails
end
class SomeCrazyClassThatHasNothingToDoWithOurSpec
include MyMod
end
describe MyMod do
it{ is_expected.to respond_to :foo } #=> passes
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment