This occurs when trying to run specs in my rails engine gem where I use state_machines-activerecord, which uses state_machines. No ida why it happens?
Inspecting the output of the method like so:
# Whether the integration should be used for the given class.
def matches?(klass)
matching_ancestors.any? { |ancestor|
puts "#{klass.inspect} >< #{ancestor.inspect}"
klass <= ancestor
}
end
I get:
DataCollecting::CollectorRun (call 'DataCollecting::CollectorRun.connection' to establish a connection) >< "ActiveRecord::Base"
DataCollecting is one of the classes I use for state_machines
This occurs when trying to run specs in my rails engine gem where I use state_machines-activerecord, which uses state_machines. No ida why it happens?
Inspecting the output of the method like so:
I get:
DataCollecting::CollectorRun (call 'DataCollecting::CollectorRun.connection' to establish a connection) >< "ActiveRecord::Base"
DataCollecting is one of the classes I use for state_machines