From acef07e036bc3f425d6552a5729638371df30f68 Mon Sep 17 00:00:00 2001 From: yoshihara Date: Thu, 2 Apr 2015 16:09:07 +0900 Subject: [PATCH] Remove its syntax depended on 'rspec-its' gem --- spec/models/fluentd/agent/common_spec.rb | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/spec/models/fluentd/agent/common_spec.rb b/spec/models/fluentd/agent/common_spec.rb index 15eea8c..dab50bf 100644 --- a/spec/models/fluentd/agent/common_spec.rb +++ b/spec/models/fluentd/agent/common_spec.rb @@ -13,21 +13,27 @@ describe 'Fluentd::Agent::Common' do describe '#pid' do context 'no pid file exists' do - its(:pid) { should be_nil } + it "should be nil" do + expect(subject.pid).to be_nil + end end context 'empty pid file given' do before { FileUtils.touch pid_file_path } after { FileUtils.rm pid_file_path } - its(:pid) { should be_nil } + it "should be nil" do + expect(subject.pid).to be_nil + end end context 'valid pid file given' do before { File.write pid_file_path, '9999' } after { FileUtils.rm pid_file_path } - its(:pid) { should eq(9999) } + it "should be 9999" do + expect(subject.pid).to eq(9999) + end end end