test/unit/assertions/assert_block_tests.rb in assert-2.17.0 vs test/unit/assertions/assert_block_tests.rb in assert-2.18.0
- old
+ new
@@ -1,10 +1,9 @@
require "assert"
require "assert/assertions"
module Assert::Assertions
-
class AssertBlockTests < Assert::Context
include Assert::Test::TestHelpers
desc "`assert_block`"
setup do
@@ -25,11 +24,10 @@
should "have a fail message with custom and generic explanations" do
exp = "#{@desc}\nExpected block to return a true value."
assert_equal exp, test_run_results(:fail).first.message
end
-
end
class AssertNotBlockTests < Assert::Context
include Assert::Test::TestHelpers
@@ -52,10 +50,8 @@
should "have a fail message with custom and generic explanations" do
exp = "#{@desc}\nExpected block to not return a true value."
assert_equal exp, test_run_results(:fail).first.message
end
-
end
-
end