Sha256: fc4e3d5f7d0d7590eb29359b48e927cd4b7a86a999f35fe605dd63993899e7e5
Contents?: true
Size: 653 Bytes
Versions: 15
Compression:
Stored size: 653 Bytes
Contents
def add_to_load_path(path, prepend=false) path = File.expand_path("../../#{path}/lib", __FILE__) if prepend $LOAD_PATH.unshift(path) unless $LOAD_PATH.include?(path) else $LOAD_PATH << path unless $LOAD_PATH.include?(path) end end require 'test/unit' add_to_load_path("rspec-expectations", :prepend) add_to_load_path("rspec-core") add_to_load_path("rspec-mocks") require 'rspec/expectations' require 'rspec/core' require 'rspec/mocks' Dir['./spec/support/**/*'].each {|f| require f} RSpec::configure do |config| config.color_enabled = true config.filter_run :focused => true config.run_all_when_everything_filtered = true end
Version data entries
15 entries across 15 versions & 3 rubygems