Remove its syntax depended on 'rspec-its' gem

This commit is contained in:
yoshihara 2015-04-02 16:09:07 +09:00
parent 5e61a1ea80
commit acef07e036

View File

@ -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