Very strange one here.
Recently updated app from 6.1 to 7. Previously passing rspec now failing. When
binding.pry into the method the record is correctly updated. I.e record.flag is changed from false to true (also when checking the DB the record is correctly updated).
However when entering the
expect part of the test e.g
expect(record.flag).to eq(true) the record has not been changed and even in the DB the changes seem to have not been made.
Would there have been any changes to rspec(or rspec rails) that would cause this? tried looking at changelogs but nothing stood out.
I know this might be hard to diagnose without code but am unable to share as proprietary code.