Closed mcmire closed 5 years ago
Just to update folks: To fully finish this I need to update Shoulda and add more integration tests for RSpec 3 (specifically around negative assertions). I just recently converted the Cucumber tests in Shoulda to Minitest tests (borrowing some code from shoulda-matchers) so this should be a lot easier than before to do. I'm trying to work on this when I have time although help would certainly be appreciated.
For anyone checking in on this, this is the number one priority for this gem right now, but it depends on finishing the (known) Rails 5 issues for shoulda-matchers. Once that's done:
shoulda-matchers
4.0.0.rc1shoulda-context
2.0.0.rc1shoulda
4.0.0.rc1 that points to shoulda-context
2.0.0.rc1 and shoulda-matchers
4.0.0.rc1This is fixed starting with shoulda-context 2.0.0.rc1, so I'm going to go ahead and close this.
I'll have a PR forthcoming, but for now:
shoulda-matchers 3.0 dropped support for RSpec 2 and removed
negative_failure_message
from all matcher classes in favor offailure_message_when_negated
. Unfortunately, shoulda-context thinks thatnegative_failure_message
still exists.There are two ways to fix this:
a) Try to call
failure_message_when_negated
instead ofnegative_failure_message
(would break backward compatibility with previous versions of shoulda-matchers) b) Try to callfailure_message_when_negated
first, thennegative_failure_message
Anyone have any opinions on this?
(Original issue: https://github.com/thoughtbot/shoulda-matchers/issues/906)