Skip to content
This repository has been archived by the owner on Jun 21, 2023. It is now read-only.

Commit

Permalink
Stub Dir.entries
Browse files Browse the repository at this point in the history
  • Loading branch information
flippingbits committed Feb 15, 2011
1 parent d94d3e0 commit 0492950
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions spec/titan/system_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0492950

Please sign in to comment.