test/unit/assertions/assert_match_tests.rb in assert-2.17.0 vs test/unit/assertions/assert_match_tests.rb in assert-2.18.0
- old
+ new
@@ -2,11 +2,10 @@
require "assert/assertions"
require "assert/utils"
module Assert::Assertions
-
class AssertMatchTests < Assert::Context
include Assert::Test::TestHelpers
desc "`assert_match`"
setup do
@@ -30,11 +29,10 @@
should "have a fail message with custom and generic explanations" do
exp = "#{@args[2]}\nExpected #{Assert::U.show(@args[1], @c)}"\
" to match #{Assert::U.show(@args[0], @c)}."
assert_equal exp, test_run_results(:fail).first.message
end
-
end
class AssertNotMatchTests < Assert::Context
include Assert::Test::TestHelpers
@@ -60,10 +58,8 @@
should "have a fail message with custom and generic explanations" do
exp = "#{@args[2]}\nExpected #{Assert::U.show(@args[1], @c)}"\
" to not match #{Assert::U.show(@args[0], @c)}."
assert_equal exp, test_run_results(:fail).first.message
end
-
end
-
end