Skip to content
Snippets Groups Projects
Commit 5eb18ffd authored by Alex Pooley's avatar Alex Pooley :red_circle:
Browse files

Merge branch '362486-ruby3-spec-failures' into 'master'

Use new rspec syntax for hierarchy service spec

See merge request !87660
parents 4c1605a4 e4c439d3
No related branches found
No related tags found
1 merge request!87660Use new rspec syntax for hierarchy service spec
Pipeline #542681837 passed
......@@ -25,10 +25,10 @@
it 'logs an info' do
expect(Gitlab::AppLogger).to receive(:info)
.with("GroupGroupLinks with ids: [#{external_group_link.id}] have been deleted.")
expect(Gitlab::AppLogger).to receive(:info).with(
expect(Gitlab::AppLogger).to receive(:info).with({
namespace: namespace.id,
message: "Removing the GroupGroupLinks outside the hierarchy with ids: [#{external_group_link.id}]"
)
})
subject.execute
end
......@@ -41,11 +41,11 @@
end
it 'logs an error' do
expect(Gitlab::AppLogger).to receive(:error).with(
expect(Gitlab::AppLogger).to receive(:error).with({
namespace: namespace.id,
message: 'An error has occurred',
details: 'An exception'
)
})
subject.execute
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