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
|
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
|
||||||
|
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user