Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/services/audit_events/build_service_spec.rb')
-rw-r--r--spec/services/audit_events/build_service_spec.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/services/audit_events/build_service_spec.rb b/spec/services/audit_events/build_service_spec.rb
index 575ec9e58b8..d5a3d1bbaf7 100644
--- a/spec/services/audit_events/build_service_spec.rb
+++ b/spec/services/audit_events/build_service_spec.rb
@@ -129,25 +129,25 @@ RSpec.describe AuditEvents::BuildService, feature_category: :audit_events do
context 'when author is missing' do
let(:author) { nil }
- it { expect { service }.to raise_error(described_class::MissingAttributeError) }
+ it { expect { service }.to raise_error(described_class::MissingAttributeError, "author") }
end
context 'when scope is missing' do
let(:scope) { nil }
- it { expect { service }.to raise_error(described_class::MissingAttributeError) }
+ it { expect { service }.to raise_error(described_class::MissingAttributeError, "scope") }
end
context 'when target is missing' do
let(:target) { nil }
- it { expect { service }.to raise_error(described_class::MissingAttributeError) }
+ it { expect { service }.to raise_error(described_class::MissingAttributeError, "target") }
end
context 'when message is missing' do
let(:message) { nil }
- it { expect { service }.to raise_error(described_class::MissingAttributeError) }
+ it { expect { service }.to raise_error(described_class::MissingAttributeError, "message") }
end
end
end