Skip to content

Commit

Permalink
Debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
Cawllec committed Sep 9, 2024
1 parent a6573d0 commit 5c9f259
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions features/support/env.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
end

Maze.config.add_validator('error') do |validator|
pp validator.headers
validator.validate_header('Bugsnag-Api-Key') { |value| value.eql?($api_key) }
validator.validate_header('Content-Type') { |value| value.eql?('application/json') }
validator.validate_header('Bugsnag-Payload-Version') { |value| value.eql?('4') }
Expand All @@ -16,7 +17,7 @@
Date.iso8601(value)
rescue Date::Error
validator.success = false
validator.errors << "bugsnag-sent-at header was expected to be an IOS 8601 date, but was '#{date}'"
validator.errors << "bugsnag-sent-at header was expected to be an ISO 8601 date, but was '#{value}'"
end
end

Expand Down Expand Up @@ -61,7 +62,7 @@
Date.iso8601(value)
rescue Date::Error
validator.success = false
validator.errors << "bugsnag-sent-at header was expected to be an IOS 8601 date, but was '#{date}'"
validator.errors << "bugsnag-sent-at header was expected to be an ISO 8601 date, but was '#{value}'"
end
end

Expand Down

0 comments on commit 5c9f259

Please sign in to comment.