Sha256: c60cacc2eed7c29d47b14f12f884f6213b4fd378134629cea0e649fcc7868563
Contents?: true
Size: 859 Bytes
Versions: 2
Compression:
Stored size: 859 Bytes
Contents
if ENV["CODECLIMATE_REPO_TOKEN"] require "codeclimate-test-reporter" CodeClimate::TestReporter.start else require "simplecov" SimpleCov.start end require "metacrunch" begin require "pry" require "yaml" rescue LoadError end RSpec.configure do |config| # begin --- rspec 3.1 generator config.expect_with :rspec do |expectations| expectations.include_chain_clauses_in_custom_matcher_descriptions = true end config.mock_with :rspec do |mocks| mocks.verify_partial_doubles = true end # end --- rspec 3.1 generator end # Helper to provide RSpec.root module ::RSpec module_function def root @spec_root ||= Pathname.new(__dir__) end end def asset_dir File.expand_path(File.join(File.dirname(__FILE__), "assets")) end def read_asset(path_to_file) File.read(File.expand_path(File.join(asset_dir, path_to_file))) end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
metacrunch-2.2.1 | spec/spec_helper.rb |
metacrunch-2.2.0 | spec/spec_helper.rb |