test/rodimus/step_test.rb in rodimus-1.2.0 vs test/rodimus/step_test.rb in rodimus-1.3.0

- old
+ new

@@ -1,26 +1,7 @@ -require 'minitest/autorun' -require 'rodimus' +require 'test_helper' -Rodimus.configure do |config| - config.logger = Logger.new(nil) -end - -class TestIO < IO # Because we can't read closed StringIOs - attr_reader :history - - def initialize - @history = [] - end - - def close; nil; end - - def puts(string) - history << string - end -end - -class TestStep < MiniTest::Unit::TestCase +class TestStep < MiniTest::Test def setup @test_string = "row 1\nrow 2" @incoming = StringIO.new(@test_string) @outgoing = TestIO.new @step = Rodimus::Step.new