Sha256: 50806f9e035f6b5ff61ac0a6991359f6b717d7ceba27a2b3f2ca7623bfd645f7
Contents?: true
Size: 713 Bytes
Versions: 5
Compression:
Stored size: 713 Bytes
Contents
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) $LOAD_PATH.unshift(File.dirname(__FILE__)) require 'rspec' require 'mocha' require 'trocla' # Requires supporting files with custom matchers and macros, etc, # in ./support/ and its subdirectories. Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f} RSpec.configure do |config| end def default_config @default_config ||= YAML.load(File.read(File.expand_path(base_dir+'/lib/trocla/default_config.yaml'))) end def test_config return @config unless @config.nil? @config = default_config @config.delete('adapter_options') @config['adapter'] = :Memory @config end def base_dir File.dirname(__FILE__)+'/../' end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
trocla-0.0.12 | spec/spec_helper.rb |
trocla-0.0.11 | spec/spec_helper.rb |
trocla-0.0.10 | spec/spec_helper.rb |
trocla-0.0.9 | spec/spec_helper.rb |
trocla-0.0.8 | spec/spec_helper.rb |