extract setup for mains test
This commit is contained in:
parent
a7207a9984
commit
a8e7602193
8
test/risc/mains/helper.rb
Normal file
8
test/risc/mains/helper.rb
Normal file
@ -0,0 +1,8 @@
|
||||
require_relative '../helper'
|
||||
|
||||
module Mains
|
||||
class MainsTest < MiniTest::Test
|
||||
include Risc::Ticker
|
||||
def setup;end
|
||||
end
|
||||
end
|
@ -1,9 +1,7 @@
|
||||
require_relative '../helper'
|
||||
require_relative 'helper'
|
||||
|
||||
module Mains
|
||||
class TestAdds < MiniTest::Test
|
||||
include Risc::Ticker
|
||||
def setup;end
|
||||
class TestAdds < MainsTest
|
||||
|
||||
def test_ruby_adds
|
||||
run_main <<HERE
|
||||
|
@ -1,9 +1,7 @@
|
||||
require_relative '../helper'
|
||||
|
||||
module Mains
|
||||
class TestPuts < MiniTest::Test
|
||||
include Risc::Ticker
|
||||
def setup;end
|
||||
class TestPuts < MainsTest
|
||||
|
||||
def test_say_hi
|
||||
hi = "Hello there"
|
||||
|
Loading…
Reference in New Issue
Block a user