From 819fccd6c7d72fabc3bfa3807094f4c9a3226292 Mon Sep 17 00:00:00 2001 From: Shinya Maeda Date: Mon, 7 May 2018 16:54:47 +0900 Subject: [PATCH] Fix spec: ci_trace_shared_examples.rb for positive offset by append --- spec/support/shared_examples/ci_trace_shared_examples.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/support/shared_examples/ci_trace_shared_examples.rb b/spec/support/shared_examples/ci_trace_shared_examples.rb index 5640451dad3..21c6f3c829f 100644 --- a/spec/support/shared_examples/ci_trace_shared_examples.rb +++ b/spec/support/shared_examples/ci_trace_shared_examples.rb @@ -196,7 +196,7 @@ shared_examples_for 'common trace features' do context 'tries to append trace at different offset' do it "fails with append" do - expect(trace.append("56", 2)).to eq(-4) + expect(trace.append("56", 2)).to eq(4) expect(trace.raw).to eq("1234") end end