From a8e76021938f67549b32730102267fc93b8a1d26 Mon Sep 17 00:00:00 2001 From: Torsten Ruger Date: Thu, 26 Apr 2018 12:33:19 +0300 Subject: [PATCH] extract setup for mains test --- test/risc/mains/helper.rb | 8 ++++++++ test/risc/mains/test_adds.rb | 6 ++---- test/risc/mains/test_puts.rb | 4 +--- 3 files changed, 11 insertions(+), 7 deletions(-) create mode 100644 test/risc/mains/helper.rb diff --git a/test/risc/mains/helper.rb b/test/risc/mains/helper.rb new file mode 100644 index 00000000..5578e9c7 --- /dev/null +++ b/test/risc/mains/helper.rb @@ -0,0 +1,8 @@ +require_relative '../helper' + +module Mains + class MainsTest < MiniTest::Test + include Risc::Ticker + def setup;end + end +end diff --git a/test/risc/mains/test_adds.rb b/test/risc/mains/test_adds.rb index 0267f7af..ec2347f9 100644 --- a/test/risc/mains/test_adds.rb +++ b/test/risc/mains/test_adds.rb @@ -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 <