Commit f60ffd54 authored by Shinya Maeda's avatar Shinya Maeda

Fix static analysys

parent 9bdb4b17
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment