diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-05-19 10:33:21 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-05-19 10:33:21 +0300 |
commit | 36a59d088eca61b834191dacea009677a96c052f (patch) | |
tree | e4f33972dab5d8ef79e3944a9f403035fceea43f /spec/graphql/types/timeframe_type_spec.rb | |
parent | a1761f15ec2cae7c7f7bbda39a75494add0dfd6f (diff) |
Add latest changes from gitlab-org/gitlab@15-0-stable-eev15.0.0-rc42
Diffstat (limited to 'spec/graphql/types/timeframe_type_spec.rb')
-rw-r--r-- | spec/graphql/types/timeframe_type_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/graphql/types/timeframe_type_spec.rb b/spec/graphql/types/timeframe_type_spec.rb index dfde3242897..288124ad24b 100644 --- a/spec/graphql/types/timeframe_type_spec.rb +++ b/spec/graphql/types/timeframe_type_spec.rb @@ -7,7 +7,7 @@ RSpec.describe GitlabSchema.types['Timeframe'] do let(:output) { { start: Date.parse(input[:start]), end: Date.parse(input[:end]) } } it 'coerces ISO-dates into Time objects' do - expect(described_class.coerce_isolated_input(input)).to eq(output) + expect(described_class.coerce_isolated_input(input).to_h).to eq(output) end it 'rejects invalid input' do @@ -20,7 +20,7 @@ RSpec.describe GitlabSchema.types['Timeframe'] do it 'accepts times as input' do with_time = input.merge(start: '2018-06-04T13:48:14Z') - expect(described_class.coerce_isolated_input(with_time)).to eq(output) + expect(described_class.coerce_isolated_input(with_time).to_h).to eq(output) end it 'requires both ends of the range' do |