diff options
Diffstat (limited to 'test/functional')
-rw-r--r-- | test/functional/bin_test.rb | 2 | ||||
-rw-r--r-- | test/functional/sample_test.rb | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/test/functional/bin_test.rb b/test/functional/bin_test.rb index 3a4e6c7..4d9f904 100644 --- a/test/functional/bin_test.rb +++ b/test/functional/bin_test.rb @@ -33,7 +33,7 @@ class BinTest < Minitest::Test def assert_command_runs(command) out = run_command command - assert ($CHILD_STATUS.exitstatus == 0), + assert $CHILD_STATUS.exitstatus.zero?, "failed to run 'nickserver #{command}':\n #{out}" end diff --git a/test/functional/sample_test.rb b/test/functional/sample_test.rb index 412555e..1bfe8b5 100644 --- a/test/functional/sample_test.rb +++ b/test/functional/sample_test.rb @@ -32,7 +32,7 @@ class SampleTest < FunctionalTest # platform/#8674 handle nonexisting domains def test_nicknym_handles_missing_domain - assert_lookup_status 404, 'postmaster@now-dont-you-dare-register-this-domain.coop' + assert_lookup_status 404, 'postmaster@dont-you-dare-register-this.coop' end def test_no_file_descriptors_leak @@ -63,7 +63,7 @@ class SampleTest < FunctionalTest def run_command(command) `#{command} 2>&1`.tap do |out| - assert ($CHILD_STATUS.exitstatus == 0), + assert $CHILD_STATUS.exitstatus.zero?, "failed to run '#{command}':\n #{out}" end end |