From f60ffd542244b6627dc1dc39ff15e12c70434a45 Mon Sep 17 00:00:00 2001 From: Shinya Maeda Date: Fri, 6 Jul 2018 17:08:00 +0900 Subject: Fix static analysys --- spec/support/shared_examples/ci_trace_shared_examples.rb | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'spec') 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 -- cgit v1.2.1