test/unit/test_twmail.rb in twmail-0.0.6 vs test/unit/test_twmail.rb in twmail-1.0.0

- old
+ new

@@ -1,8 +1,10 @@ +# frozen_string_literal: true + require 'test_helper' -class TestHelpers < TaskWarrior::Test::Integration::TestCase +class TestHelpers < TaskWarrior::Test::Integration::Test def teardown ENV['TASKRC'] = nil super end @@ -65,11 +67,11 @@ protected def deliver_fixture(status, fixture) twmail = File.join(File.dirname(__FILE__), '..', '..', 'bin', 'twmail') ENV['TASKRC'] = @taskrc_file - output = %x[cat #{fixture} | #{twmail}] - assert_equal(status, $?.exitstatus) + output = `cat #{fixture} | #{twmail}` + assert_equal(status, $CHILD_STATUS.exitstatus) output end def fixture(name) File.join(File.dirname(__FILE__), '..', 'fixtures', name)