Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added a new queue that stores it's messages in the file system and ad…
…ded a test and a sample config to config.ru
- Loading branch information
Vincent Landgraf
committed
Aug 28, 2008
1 parent
6b231a8
commit cb74e1b
Showing
3 changed files
with
52 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
require File.dirname(__FILE__) + '/test_helper.rb' | ||
require "fileutils" | ||
|
||
# This is the default test to the message interface | ||
class TestFilePersistentQueue < Test::Unit::TestCase | ||
include FifoQueueTests | ||
|
||
def setup | ||
manager = nil # the manager is not needed in this test | ||
@queue = FreeMessageQueue::FilePersistentQueue.new(manager) | ||
@queue.folder = "/tmp/fmq/FilePersistentQueue/testqueue" | ||
end | ||
|
||
def teardown | ||
# remove the test data | ||
FileUtils.rm_rf "/tmp/fmq" | ||
end | ||
end |