Skip to content
Snippets Groups Projects
Commit ba94a145 authored by Brett Walker's avatar Brett Walker
Browse files

Fix some specs

parent 79e2e231
No related branches found
No related tags found
No related merge requests found
......@@ -8,7 +8,7 @@
let(:user) { build :user }
it 'uses batch loading' do
expect(field_instrumenters).to include(BatchLoader::GraphQL)
expect(tracers).to include(BatchLoader::GraphQL)
end
it 'enables the generic instrumenter' do
......@@ -287,4 +287,8 @@ def initialize(id)
def field_instrumenters
described_class.instrumenters[:field] + described_class.instrumenters[:field_after_built_ins]
end
def tracers
described_class.tracers
end
end
......@@ -39,6 +39,7 @@
it 'creates a new release asset link', :aggregate_failures do
expect(subject).to eq({
link: release.reload.links.first,
client_mutation_id: nil,
errors: []
})
......
......@@ -68,6 +68,7 @@
expect(result).to match(
branch: be_nil,
success_path: be_nil,
client_mutation_id: be_nil,
errors: match_array([error_message])
)
end
......@@ -89,6 +90,7 @@
expect(result).to match(
branch: branch,
success_path: success_path,
client_mutation_id: be_nil,
errors: []
)
end
......@@ -105,6 +107,7 @@
expect(result).to match(
branch: be_nil,
success_path: be_nil,
client_mutation_id: be_nil,
errors: match_array([error])
)
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment