diff --git a/spec/support/asserts.rb b/spec/support/asserts.rb index b646cdd1..b60d2d75 100644 --- a/spec/support/asserts.rb +++ b/spec/support/asserts.rb @@ -46,7 +46,7 @@ def assert_record_values(record, values, index: nil) record_value = record_value.to_s - elsif expected.is_a?(Fixnum) && record_value.is_a?(String) + elsif expected.is_a?(Integer) && record_value.is_a?(String) # could be an enum index => being converted to its string form # .. so check if it responds to enum methods next if record.class.respond_to?(field.pluralize) && record.respond_to?("#{record_value}?")