Skip to content

Instantly share code, notes, and snippets.

@tooky
Last active December 19, 2015 09:29
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 tooky/5933457 to your computer and use it in GitHub Desktop.
Save tooky/5933457 to your computer and use it in GitHub Desktop.
module MiniTestAssertions
def self.extended(base)
base.extend(MiniTest::Assertions)
end
attr_accessor :assertions
end
World(MiniTestAssertions) # this will work
# vs
module MiniTestAssertions
include MiniTest::Assertions
attr_accessor :assertions
end
World(MiniTestAssertions) # this won't
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment