In our application, we have used this
expect_any_instance_of(Order::ActiveRecord_Relation)
.to receive(:something)
As we upgraded the application to rails 5.2 we are getting the following error
NameError:
private constant #<Class:0x000055aa351fc9a0>::ActiveRecord_Relation referenced
Is there a way to check for ActiveRecord::Relation
of a specific Model with expect_any_instance_of
There a issue raised for the same https://github.com/rails/rails/issues/30943