diff options
Diffstat (limited to 'spec/graphql/types/base_enum_spec.rb')
-rw-r--r-- | spec/graphql/types/base_enum_spec.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/graphql/types/base_enum_spec.rb b/spec/graphql/types/base_enum_spec.rb index bab0278ee25..65a345052c7 100644 --- a/spec/graphql/types/base_enum_spec.rb +++ b/spec/graphql/types/base_enum_spec.rb @@ -102,9 +102,9 @@ RSpec.describe Types::BaseEnum do it 'sets the values defined by the declarative enum' do set_declarative_enum - expect(enum_type.values.keys).to eq(['FOO']) - expect(enum_type.values.values.map(&:description)).to eq(['description of foo']) - expect(enum_type.values.values.map(&:value)).to eq([0]) + expect(enum_type.values.keys).to contain_exactly('FOO') + expect(enum_type.values.values.map(&:description)).to contain_exactly('description of foo') + expect(enum_type.values.values.map(&:value)).to contain_exactly('foo') end end end @@ -136,7 +136,7 @@ RSpec.describe Types::BaseEnum do value 'TEST_VALUE', **args end - enum.to_graphql.values['TEST_VALUE'] + enum.values['TEST_VALUE'] end end end |