1
0
Fork 0
mirror of https://github.com/middleman/middleman.git synced 2022-11-09 12:20:27 -05:00
middleman--middleman/middleman-core/spec/spec_helper.rb
Thomas Reynolds feb7a3d852
Centralize active_support integration (#2256)
* Centralize active_support integration

* For some reason, as_json is magic

* Fix ActiveSupport paths

* Env update
2019-03-01 14:18:29 -08:00

34 lines
749 B
Ruby

require 'backports/latest'
require 'active_support/all'
require 'simplecov'
SimpleCov.root(File.expand_path(File.dirname(__FILE__) + '/..'))
SimpleCov.start
require 'aruba/api'
RSpec.configure do |config|
config.include Aruba::Api
end
require_relative 'support/given'
# encoding: utf-8
RSpec.configure do |config|
config.filter_run :focus
config.run_all_when_everything_filtered = true
config.default_formatter = 'doc' if config.files_to_run.one?
# config.profile_examples = 10
config.order = :random
Kernel.srand config.seed
config.expect_with :rspec do |expectations|
expectations.syntax = :expect
end
config.mock_with :rspec do |mocks|
mocks.syntax = :expect
mocks.verify_partial_doubles = true
end
end