Skip to content

Commit

Permalink
fix: Adjust flaky spec on ValidateAbsenceOfMatcher (#1590)
Browse files Browse the repository at this point in the history
  • Loading branch information
matsales28 authored Dec 20, 2023
1 parent c17c0d7 commit 5d26d0d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions spec/support/unit/change_value.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ def next_value
value + [value.first.class.new]
elsif value.respond_to?(:next)
return value.to_date + 1.day if date_column?
return SecureRandom.uuid if uuid_column?

value.next
else
Expand Down Expand Up @@ -115,5 +116,9 @@ def dummy_value_for_column
def date_column?
[:date, :datetime, :time, :timestamp].include?(column_type)
end

def uuid_column?
column_type == :uuid
end
end
end

0 comments on commit 5d26d0d

Please sign in to comment.