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