Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions test/minitest/test_minitest_mock.rb
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def test_expect_with_non_array_args
@mock.expect :blah, 3, false
end

assert_equal "args must be an array", e.message
assert_match "args must be an array", e.message
end

def test_respond_appropriately
Expand All @@ -150,7 +150,7 @@ def test_no_method_error_on_unexpected_methods

expected = "unmocked method :bar, expected one of [:foo, :meaning_of_life]"

assert_equal expected, e.message
assert_match expected, e.message
end

def test_assign_per_mock_return_values
Expand Down Expand Up @@ -309,7 +309,7 @@ def test_mock_block_throws_if_args_passed

exp = "args ignored when block given"

assert_equal exp, e.message
assert_match exp, e.message
end

def test_mock_returns_retval_when_called_with_block
Expand Down Expand Up @@ -822,7 +822,7 @@ def test_stub_value_block_args_5__break_if_not_passed
end
end
exp = "undefined method `write' for nil:NilClass"
assert_equal exp, e.message
assert_match exp, e.message
end

def test_stub_value_block_args_6
Expand Down