extract setup for mains test

This commit is contained in:
Torsten Ruger 2018-04-26 12:33:19 +03:00
parent a7207a9984
commit a8e7602193
3 changed files with 11 additions and 7 deletions

View File

@ -0,0 +1,8 @@
require_relative '../helper'
module Mains
class MainsTest < MiniTest::Test
include Risc::Ticker
def setup;end
end
end

View File

@ -1,9 +1,7 @@
require_relative '../helper' require_relative 'helper'
module Mains module Mains
class TestAdds < MiniTest::Test class TestAdds < MainsTest
include Risc::Ticker
def setup;end
def test_ruby_adds def test_ruby_adds
run_main <<HERE run_main <<HERE

View File

@ -1,9 +1,7 @@
require_relative '../helper' require_relative '../helper'
module Mains module Mains
class TestPuts < MiniTest::Test class TestPuts < MainsTest
include Risc::Ticker
def setup;end
def test_say_hi def test_say_hi
hi = "Hello there" hi = "Hello there"