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.7.5 vendor/bundle/gems/rspec-expectations-2.9.0/spec/spec_helper.rb
classiccms-0.7.5 vendor/bundle/gems/rspec-expectations-2.10.0/spec/spec_helper.rb
classiccms-0.7.5 vendor/bundle/gems/rspec-expectations-2.9.1/spec/spec_helper.rb
classiccms-0.7.4 vendor/bundle/gems/rspec-expectations-2.10.0/spec/spec_helper.rb
classiccms-0.7.4 vendor/bundle/gems/rspec-expectations-2.9.0/spec/spec_helper.rb
classiccms-0.7.4 vendor/bundle/gems/rspec-expectations-2.9.1/spec/spec_helper.rb
classiccms-0.7.3 vendor/bundle/gems/rspec-expectations-2.9.0/spec/spec_helper.rb
classiccms-0.7.3 vendor/bundle/gems/rspec-expectations-2.10.0/spec/spec_helper.rb
classiccms-0.7.3 vendor/bundle/gems/rspec-expectations-2.9.1/spec/spec_helper.rb
tnargav-1.3.3 vendor/bundle/ruby/1.9.1/gems/rspec-expectations-2.11.3/spec/spec_helper.rb
tnargav-1.2.3 vendor/bundle/ruby/1.9.1/gems/rspec-expectations-2.11.3/spec/spec_helper.rb
classiccms-0.7.2 vendor/bundle/gems/rspec-expectations-2.10.0/spec/spec_helper.rb
classiccms-0.7.2 vendor/bundle/gems/rspec-expectations-2.9.0/spec/spec_helper.rb
classiccms-0.7.2 vendor/bundle/gems/rspec-expectations-2.9.1/spec/spec_helper.rb
classiccms-0.7.1 vendor/bundle/gems/rspec-expectations-2.9.0/spec/spec_helper.rb
classiccms-0.7.1 vendor/bundle/gems/rspec-expectations-2.9.1/spec/spec_helper.rb
classiccms-0.7.1 vendor/bundle/gems/rspec-expectations-2.10.0/spec/spec_helper.rb
classiccms-0.7.0 vendor/bundle/gems/rspec-expectations-2.10.0/spec/spec_helper.rb
classiccms-0.7.0 vendor/bundle/gems/rspec-expectations-2.9.0/spec/spec_helper.rb
classiccms-0.7.0 vendor/bundle/gems/rspec-expectations-2.9.1/spec/spec_helper.rb