/usr/share/backgroundrb/test/client/test_bdrb_client_helper.rb is in libbackgroundrb-ruby1.8 1.1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 | require File.join(File.dirname(__FILE__) + "/../bdrb_test_helper")
require File.join(File.dirname(__FILE__) + "/../bdrb_client_test_helper")
context "For client helper" do
specify "should return correct worker key" do
class Foo
include BackgrounDRb::ClientHelper
end
a = Foo.new
a.gen_worker_key("hello","world").should == :hello_world
a.gen_worker_key("hello").should == :hello
end
end
|