test/unit/assertions_tests.rb in assert-2.17.0 vs test/unit/assertions_tests.rb in assert-2.18.0
- old
+ new
@@ -1,10 +1,9 @@
require "assert"
require "assert/assertions"
module Assert::Assertions
-
class UnitTests < Assert::Context
include Assert::Test::TestHelpers
desc "Assert::Context"
setup do
@@ -31,11 +30,10 @@
should have_imeths :refute_includes, :refute_included
should have_imeths :assert_nil, :assert_not_nil, :refute_nil
should have_imeths :assert_true, :assert_not_true, :refute_true
should have_imeths :assert_false, :assert_not_false, :refute_false
should have_imeths :assert_file_exists, :assert_not_file_exists, :refute_file_exists
-
end
class IgnoredTests < UnitTests
desc "ignored assertions helpers"
setup do
@@ -62,9 +60,7 @@
"The assertion `#{helper}` is not supported."\
" Please use another assertion or the basic `assert`."
end
assert_equal exp, test_run_results.collect(&:message)
end
-
end
-
end