Sha256: 34eb2ae6891c8f96efb9758502d7a5139c448a1511ee71267c954b018581a742
Contents?: true
Size: 800 Bytes
Versions: 2
Compression:
Stored size: 800 Bytes
Contents
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
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
backgroundrb-rails3-1.1.6 | test/client/test_bdrb_config.rb |
backgroundrb-rails3-1.1.5 | test/client/test_bdrb_config.rb |