Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 7718ebd10c
Fetching contributors…

Cannot retrieve contributors at this time

44 lines (37 sloc) 0.929 kb
$LOAD_PATH.unshift(File.expand_path('../../../core/lib', __FILE__))
$LOAD_PATH.unshift(File.expand_path('../../../mocks/lib', __FILE__))
$LOAD_PATH.unshift(File.expand_path('../../lib', __FILE__))
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
Jump to Line
Something went wrong with that request. Please try again.