diff options
Diffstat (limited to 'spec/lib/bulk_imports/common/extractors/graphql_extractor_spec.rb')
-rw-r--r-- | spec/lib/bulk_imports/common/extractors/graphql_extractor_spec.rb | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/spec/lib/bulk_imports/common/extractors/graphql_extractor_spec.rb b/spec/lib/bulk_imports/common/extractors/graphql_extractor_spec.rb index a7a19fb73fc..2abd3df20fd 100644 --- a/spec/lib/bulk_imports/common/extractors/graphql_extractor_spec.rb +++ b/spec/lib/bulk_imports/common/extractors/graphql_extractor_spec.rb @@ -27,11 +27,8 @@ RSpec.describe BulkImports::Common::Extractors::GraphqlExtractor do allow(graphql_client).to receive(:execute).and_return(response) end - it 'returns an enumerator with fetched results' do - response = subject.extract(context) - - expect(response).to be_instance_of(Enumerator) - expect(response.first).to eq({ foo: :bar }) + it 'returns original hash' do + expect(subject.extract(context)).to eq({ foo: :bar }) end end |