Last active
August 29, 2015 13:56
-
-
Save AntelopeSalad/9006451 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
# I noticed this syntax worked for multiple levels of modules so I tried it | |
module MiniTest::Assertions | |
def assert_something_amazing | |
true | |
end | |
end |
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
# test/integration/foo_test.rb | |
require '../test_helper' | |
class TestShell < Foo::Test::IntegrationTestCase | |
def test_something_cool | |
assert some_method | |
end | |
end |
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
# test/test_helper.rb | |
require 'minitest/autorun' | |
$:.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) | |
$:.unshift(File.dirname(__FILE__)) | |
require 'assertions' | |
module Foo | |
module Test | |
class IntegrationTestCase < Minitest::Test | |
def some_method | |
true | |
end | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment