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 ...@@ -593,7 +593,7 @@ shared_examples_for 'trace with disabled live trace feature' do
describe '#erase!' do describe '#erase!' do
subject { trace.erase! } 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 context 'when trace is stored in database' do
let(:build) { create(:ci_build) } let(:build) { create(:ci_build) }
...@@ -605,7 +605,7 @@ shared_examples_for 'trace with disabled live trace feature' do ...@@ -605,7 +605,7 @@ shared_examples_for 'trace with disabled live trace feature' do
it "removes trace" do it "removes trace" do
subject subject
expect(trace.raw).to be_nil expect(trace.raw).to be_nil
end end
end end
...@@ -617,7 +617,7 @@ shared_examples_for 'trace with disabled live trace feature' do ...@@ -617,7 +617,7 @@ shared_examples_for 'trace with disabled live trace feature' do
it "removes trace" do it "removes trace" do
subject subject
expect(trace.raw).to be_nil expect(trace.raw).to be_nil
end end
end end
...@@ -629,10 +629,10 @@ shared_examples_for 'trace with disabled live trace feature' do ...@@ -629,10 +629,10 @@ shared_examples_for 'trace with disabled live trace feature' do
it "has trace at first" do it "has trace at first" do
expect(trace.raw).not_to be_nil expect(trace.raw).not_to be_nil
end end
it "removes trace" do it "removes trace" do
subject subject
build.reload build.reload
expect(trace.raw).to be_nil expect(trace.raw).to be_nil
end end
...@@ -836,7 +836,7 @@ shared_examples_for 'trace with enabled live trace feature' do ...@@ -836,7 +836,7 @@ shared_examples_for 'trace with enabled live trace feature' do
it "removes trace" do it "removes trace" do
subject subject
expect(trace.raw).to be_nil expect(trace.raw).to be_nil
end end
end end
...@@ -847,10 +847,10 @@ shared_examples_for 'trace with enabled live trace feature' do ...@@ -847,10 +847,10 @@ shared_examples_for 'trace with enabled live trace feature' do
it "has trace at first" do it "has trace at first" do
expect(trace.raw).not_to be_nil expect(trace.raw).not_to be_nil
end end
it "removes trace" do it "removes trace" do
subject subject
build.reload build.reload
expect(trace.raw).to be_nil expect(trace.raw).to be_nil
end 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