Skip to content

Commit 2b9ac4b

Browse files
Remove duplicate wording
1 parent ffc6ff3 commit 2b9ac4b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/graphql/date_encoding_error.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class DateEncodingError < GraphQL::RuntimeTypeError
1010

1111
def initialize(value)
1212
@date_value = value
13-
super("Date cannot be parsed: #{value}. \nDate must be be able to be parsed as a Ruby Date object.")
13+
super("Date cannot be parsed: #{value}. \nDate must be able to be parsed as a Ruby Date object.")
1414
end
1515
end
1616
end

spec/graphql/types/iso_8601_date_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ def parse_date(date_str, context: {})
157157
assert_equal expected_errors, parse_date("xyz").map { |e| e["message"] }
158158
assert_equal expected_errors, parse_date(nil).map { |e| e["message"] }
159159
assert_equal expected_errors, parse_date([1, 2, 3]).map { |e| e["message"] }
160-
assert_equal "A type error was raised: Date cannot be parsed: blah. \nDate must be be able to be parsed as a Ruby Date object.", parse_date("blah", context: { raise_type_error: true })[0]["extensions"]["problems"][0]["explanation"].strip
160+
assert_equal "A type error was raised: Date cannot be parsed: blah. \nDate must be able to be parsed as a Ruby Date object.", parse_date("blah", context: { raise_type_error: true })[0]["extensions"]["problems"][0]["explanation"].strip
161161
assert_equal "Could not coerce value \"blah\" to ISO8601Date", parse_date("blah", context: { raise_type_error: false })[0]["extensions"]["problems"][0]["explanation"]
162162
end
163163

0 commit comments

Comments
 (0)