Sha256: 84a0a6eca9cb7ab13350894343be68542c6d26d8c3d7cdacb56637f8927933de
Contents?: true
Size: 368 Bytes
Versions: 3
Compression:
Stored size: 368 Bytes
Contents
require 'spec_helper' describe Daemons::PidFile do describe "#find_files" do it 'does not include files with shared prefix' do Dir.stub('[]') { %w{srv.pid srv123.pid srv-other.pid} } File.stub(:readable?) { true } File.stub(:file?) { true } expect(Daemons::PidFile.find_files('/', 'srv')).to eql %w{srv.pid srv123.pid} end end end
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
blue-daemons-1.1.11 | spec/pidfile_spec.rb |
mlanett-daemons-1.1.10.3 | spec/pidfile_spec.rb |
mlanett-daemons-1.1.10.2 | spec/pidfile_spec.rb |