Skip to content

Commit

Permalink
Fix one_of field attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
Cawllec committed Feb 24, 2025
1 parent 60753b6 commit 1e5d0a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/features/support/interface/traces_interface.rb
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def assert_field_attribute_one_of(field, attribute, attr_type, values)
Maze.check.include(found_attribute['value'], attr_type, "Payload field '#{field}' attribute '#{attribute}' value was not an '#{attr_type}', found '#{found_attribute['value']}'")

attribute_value = found_attribute['value'][attr_type]
allowable_values = values.raw
allowable_values = values.raw.flatten
failure_message = "The payload field '#{field}' attribute '#{attribute}' (#{attribute_value}) was not one of: '#{allowable_values}'"
Maze.check.include(allowable_values, attribute_value, failure_message)
end
Expand Down

0 comments on commit 1e5d0a6

Please sign in to comment.