class Test::Unit::TestAssertNotInclude
Public Instance Methods
test_fail()
click to toggle source
# File test-unit-3.3.4/test/test-assertions.rb, line 2045 def test_fail check_fail("<[1, 2, 3]> was expected to not include\n" + "<2>.") do assert_not_include([1, 2, 3], 2) end end
test_fail_because_not_collection_like_object()
click to toggle source
# File test-unit-3.3.4/test/test-assertions.rb, line 2060 def test_fail_because_not_collection_like_object object = Object.new inspected_object = AssertionMessage.convert(object) check_fail("The collection must respond to :include?.\n" + "<#{inspected_object}>.respond_to?(:include?) expected\n" + "(Class: <Object>)") do assert_not_include(object, 1) end end
test_fail_with_message()
click to toggle source
# File test-unit-3.3.4/test/test-assertions.rb, line 2052 def test_fail_with_message check_fail("message.\n" + "<[1, 2, 3]> was expected to not include\n" + "<2>.") do assert_not_include([1, 2, 3], 2, "message") end end
test_pass()
click to toggle source
# File test-unit-3.3.4/test/test-assertions.rb, line 2033 def test_pass check_nothing_fails do assert_not_include([1, 2, 3], 5) end end
test_pass_with_message()
click to toggle source
# File test-unit-3.3.4/test/test-assertions.rb, line 2039 def test_pass_with_message check_nothing_fails do assert_not_include([1, 2, 3], 5, "message") end end