Sha256: 161e85c4adceafdd908e04ed92dd281115061f727178e90b9284363250fdce18

Contents?: true

Size: 909 Bytes

Versions: 4

Compression:

Stored size: 909 Bytes

Contents

require "rubygems"
require "mocha"
require "test/spec"
require "active_record"
require "active_support"
require "yaml"
require "erb"

class BDRB_CONFIG
  @config_value = {}
  def self.fuck
    @config_value
  end
  def self.set hash
    @config_value = hash
  end
  def self.[] key
    @config_value[key]
  end
end

RAILS_HOME = File.expand_path(File.join(File.dirname(__FILE__) + "/../../../..")) unless defined?(RAILS_HOME)
PACKET_APP = RAILS_HOME + "/vendor/plugins/backgroundrb" unless defined?(PACKET_APP)
WORKER_ROOT = RAILS_HOME + "/vendor/plugins/backgroundrb/test/workers" unless defined?(WORKER_ROOT)
SERVER_LOGGER = RAILS_HOME + "/log/backgroundrb_debug.log" unless defined?(SERVER_LOGGER)

["server","server/lib","lib","lib/backgroundrb"].each { |x| $LOAD_PATH.unshift(PACKET_APP + "/#{x}")}
$LOAD_PATH.unshift(WORKER_ROOT)

require "packet"
require "bdrb_config"

require "backgroundrb_server"


Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
backgroundrb-rails3-1.1.3 test/bdrb_test_helper.rb
backgroundrb-rails3-1.1.2 test/bdrb_test_helper.rb
backgroundrb-rails3-1.1.1 test/bdrb_test_helper.rb
backgroundrb-rails3-1.1 test/bdrb_test_helper.rb