Sha256: 969e4642c7ab9018fa6494f8efa45011db7779135079b9bd33f6c93ab7b367d3
Contents?: true
Size: 632 Bytes
Versions: 5
Compression:
Stored size: 632 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 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
5 entries across 5 versions & 2 rubygems