Sha256: 3f7ae0c0c579b261649fce6fd0e6a5fe501aaa11cb1bd983d73b7aed60f86999
Contents?: true
Size: 678 Bytes
Versions: 192
Compression:
Stored size: 678 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 config.order = :random end
Version data entries
192 entries across 93 versions & 14 rubygems