diff --git a/spec/titan/system_spec.rb b/spec/titan/system_spec.rb index 1a074a8..d3edd92 100644 --- a/spec/titan/system_spec.rb +++ b/spec/titan/system_spec.rb @@ -27,6 +27,10 @@ end describe ".pid_files" do + before(:each) do + Dir.stub!(:entries).and_return([".", "..", "test.pid"]) + end + it "should return an Array" do Titan::System.pid_files.should be_an(Array) end