summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorShinya Maeda <shinya@gitlab.com>2018-07-06 17:08:00 +0900
committerShinya Maeda <shinya@gitlab.com>2018-07-06 17:08:00 +0900
commitf60ffd542244b6627dc1dc39ff15e12c70434a45 (patch)
treedad56ca4810c392e9d4f781208d7417d485708db /spec
parent9bdb4b179a515261875b7c201b4112bfb007436f (diff)
downloadgitlab-ce-f60ffd542244b6627dc1dc39ff15e12c70434a45.tar.gz
Fix static analysys
Diffstat (limited to 'spec')
-rw-r--r--spec/support/shared_examples/ci_trace_shared_examples.rb16
1 files changed, 8 insertions, 8 deletions
diff --git a/spec/support/shared_examples/ci_trace_shared_examples.rb b/spec/support/shared_examples/ci_trace_shared_examples.rb
index 22e7f0202d7..074b6a1d672 100644
--- a/spec/support/shared_examples/ci_trace_shared_examples.rb
+++ b/spec/support/shared_examples/ci_trace_shared_examples.rb
@@ -593,7 +593,7 @@ shared_examples_for 'trace with disabled live trace feature' do
describe '#erase!' do
subject { trace.erase! }
- context 'when it is a live trace' do
+ context 'when it is a live trace' do
context 'when trace is stored in database' do
let(:build) { create(:ci_build) }
@@ -605,7 +605,7 @@ shared_examples_for 'trace with disabled live trace feature' do
it "removes trace" do
subject
-
+
expect(trace.raw).to be_nil
end
end
@@ -617,7 +617,7 @@ shared_examples_for 'trace with disabled live trace feature' do
it "removes trace" do
subject
-
+
expect(trace.raw).to be_nil
end
end
@@ -629,10 +629,10 @@ shared_examples_for 'trace with disabled live trace feature' do
it "has trace at first" do
expect(trace.raw).not_to be_nil
end
-
+
it "removes trace" do
subject
-
+
build.reload
expect(trace.raw).to be_nil
end
@@ -836,7 +836,7 @@ shared_examples_for 'trace with enabled live trace feature' do
it "removes trace" do
subject
-
+
expect(trace.raw).to be_nil
end
end
@@ -847,10 +847,10 @@ shared_examples_for 'trace with enabled live trace feature' do
it "has trace at first" do
expect(trace.raw).not_to be_nil
end
-
+
it "removes trace" do
subject
-
+
build.reload
expect(trace.raw).to be_nil
end