Sha256: 45c2dbf98d825bdc9f8741fcbaff641f85022017a0edce485959a6a2b8dcd46a

Contents?: true

Size: 944 Bytes

Versions: 1

Compression:

Stored size: 944 Bytes

Contents

$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '../../core/lib'))
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '../../mocks/lib'))
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
require 'rspec/expectations'
require 'rspec/mocks'
require 'rspec/core'

Dir['./spec/support/**/*'].each do |f|
  require f
end

def with_ruby(version)
  yield if RUBY_PLATFORM =~ Regexp.compile("^#{version}")
end

module Rspec
  module Ruby
    class << self
      def version
        RUBY_VERSION
      end
    end
  end
end

module Rspec  
  module Matchers
    def fail
      raise_error(Rspec::Expectations::ExpectationNotMetError)
    end

    def fail_with(message)
      raise_error(Rspec::Expectations::ExpectationNotMetError, message)
    end
  end
end

Rspec::Core::configure do |config|
  config.mock_with(:rspec)
  config.include Rspec::Mocks::Methods
  config.include Rspec::Matchers
  config.color_enabled = true
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rspec-expectations-2.0.0.a2 spec/spec_helper.rb