Last active
December 19, 2015 09:29
-
-
Save tooky/5933457 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
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