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

Version Path
classiccms-0.5.17 vendor/bundle/gems/rspec-expectations-2.10.0/spec/spec_helper.rb
classiccms-0.5.17 vendor/bundle/gems/rspec-expectations-2.9.1/spec/spec_helper.rb
classiccms-0.5.16 vendor/bundle/gems/rspec-expectations-2.9.0/spec/spec_helper.rb
classiccms-0.5.16 vendor/bundle/gems/rspec-expectations-2.10.0/spec/spec_helper.rb
classiccms-0.5.16 vendor/bundle/gems/rspec-expectations-2.9.1/spec/spec_helper.rb
classiccms-0.5.15 vendor/bundle/gems/rspec-expectations-2.9.0/spec/spec_helper.rb
classiccms-0.5.15 vendor/bundle/gems/rspec-expectations-2.10.0/spec/spec_helper.rb
classiccms-0.5.15 vendor/bundle/gems/rspec-expectations-2.9.1/spec/spec_helper.rb
classiccms-0.5.14 vendor/bundle/gems/rspec-expectations-2.9.1/spec/spec_helper.rb
classiccms-0.5.14 vendor/bundle/gems/rspec-expectations-2.9.0/spec/spec_helper.rb
classiccms-0.5.14 vendor/bundle/gems/rspec-expectations-2.10.0/spec/spec_helper.rb
classiccms-0.5.13 vendor/bundle/gems/rspec-expectations-2.9.1/spec/spec_helper.rb
classiccms-0.5.13 vendor/bundle/gems/rspec-expectations-2.9.0/spec/spec_helper.rb
classiccms-0.5.13 vendor/bundle/gems/rspec-expectations-2.10.0/spec/spec_helper.rb
librarian-puppet-0.9.4 vendor/gems/ruby/1.8/gems/rspec-expectations-2.11.2/spec/spec_helper.rb
rspec-expectations-2.11.3 spec/spec_helper.rb
classiccms-0.5.12 vendor/bundle/gems/rspec-expectations-2.9.1/spec/spec_helper.rb
classiccms-0.5.12 vendor/bundle/gems/rspec-expectations-2.9.0/spec/spec_helper.rb
classiccms-0.5.12 vendor/bundle/gems/rspec-expectations-2.10.0/spec/spec_helper.rb
classiccms-0.5.11 vendor/bundle/gems/rspec-expectations-2.9.1/spec/spec_helper.rb