Last active
December 27, 2015 03:59
-
-
Save iHiD/7263235 to your computer and use it in GitHub Desktop.
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
# DON'T call this _test.rb as you don't want it to run | |
module AbstractTest | |
def test_the_abstract_thing | |
klass.do_something | |
assert something, klass.something | |
end | |
end |
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
# This is a test and inherits the others tests. | |
class UserDocumentTest < Minitest::Test | |
include AbstractTest | |
protected | |
def klass | |
UserDocument | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment