The move from 2.6 to 2.8 has broken my custom matchers (dsl form). This only occurs however when all the specs in the suite are run, not when they are run individually. For example, error is now "expected x to validate y" fails where before it passed.
Is this a known issue?
Yes sir, it is known. Thanks for reporting.
Is that the same? I'm only seeing the behaviour when it's run as part of the suite.
Can you paste your custom matcher please?
Pasting an example below. They all seem to break however.
RSpec::Matchers.define :have_field_for do |field|
match do |actual|
if (field = actual.fields[field.to_s]).present?
(@type.present? ? @type == field.options[:type] : true),
(@default.present? ? @default == field.options[:default] : true)
chain :with_default do |default|
@default = default
chain :with_type do |type|
@type = type
David posted some comments on the other issue. Should be fixed tonight :)
Cool. Thanks for the help.
@brentmurphy your issue is a dup of #104, which is fixed.
Awesome. Thanks for the quick turnaround.