class Test::Unit::TestAssertNotSend

Public Instance Methods

test_fail() click to toggle source
# File test-unit-3.3.4/test/test-assertions.rb, line 2158
      def test_fail
        expected_message = <<-EOM
message.
<[1, 2]> was expected to respond to
<member?(*[2])> with not a true value but was
<true>.
EOM
        check_fail(expected_message.chomp) do
          assert_not_send([[1, 2], :member?, 2], "message")
        end
      end
test_pass() click to toggle source
# File test-unit-3.3.4/test/test-assertions.rb, line 2152
def test_pass
  check_nothing_fails do
    assert_not_send([[1, 2], :member?, 4], "message")
  end
end