In rspec: Can I attach a message to a check the same way as I would do in xUnit style test frameworks? How?
assert_equal value1, value2, \"something is wrong\" <
In my case it was a problem of parenthesis:
expect(coder.is_partial?(v)).to eq p, "expected #{v} for #{p}"
this resulted in a wrong number of arguments, while the correct way is:
expect(coder.is_partial?(v)).to eq(p), "expected #{v} for #{p}"