Ticket #1 (closed defect: wontfix)

Opened 9 months ago

Last modified 9 months ago

Custom failure messages don't convert right

Reported by: iain Assigned to: muness
Priority: minor Component: spec_converter
Keywords: Cc:

Description

Consider this diff:

-        assert_not_nil goal.errors.on(a), "Errors found: #{goal.errors.on(a).inspect}"
+        goal.errors.on(a), "Errors found: #{goal.errors.on(a).inspect}".should.not == nil

As far as I am aware of, there is no custom message for RSpec. I don't know how that could be done, maybe putting it in a comment?

leading to this transformation: assert_not_nil arg1, arg2 ==> arg1.should.not == nil # arg2

Although I haven't tested it, this problem will probably occur with every assert containing a custom failure message.

Change History

01/25/08 10:30:22 changed by jason

  • status changed from new to closed.
  • resolution set to wontfix.

Closing ticket - spec_converter is intended to convert to test/spec syntax, not RSpec syntax