Skip to content

Commit

Permalink
Fixnum has become Integer
Browse files Browse the repository at this point in the history
  • Loading branch information
tobyprivett committed May 14, 2021
1 parent 4a94034 commit f5d5d82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/support/asserts.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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}?")
Expand Down

0 comments on commit f5d5d82

Please sign in to comment.