This file is indexed.

/usr/share/backgroundrb/test/client/test_bdrb_config.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
14
15
16
17
18
19
20
require File.join(File.dirname(__FILE__) + "/../bdrb_test_helper")
require File.join(File.dirname(__FILE__) + "/../bdrb_client_test_helper")

context "For BackgrounDRb config" do
  conf_file = File.join(File.dirname(__FILE__),"backgroundrb.yml")
  specify "should setup correct environment from cmd options" do
    BackgrounDRb::Config.parse_cmd_options(["-e", "production"])
    BackgrounDRb::Config.read_config(conf_file)
    ENV["RAILS_ENV"].should == "production"
    RAILS_ENV.should == "production"
  end

  specify "should setup correct environment from conf file" do
    ENV["RAILS_ENV"] = nil
    BackgrounDRb::Config.parse_cmd_options([])
    BackgrounDRb::Config.read_config(conf_file)
    ENV["RAILS_ENV"].should == "development"
    RAILS_ENV.should == "development"
  end
end