middleman/middleman-core/spec/spec_helper.rb

37 lines
782 B
Ruby
Raw Normal View History

2013-05-28 22:11:57 -07:00
require 'simplecov'
2013-05-30 13:38:52 -04:00
SimpleCov.root(File.expand_path(File.dirname(__FILE__) + '/..'))
require 'coveralls'
Coveralls.wear!
2014-06-20 14:09:51 -07:00
require 'codeclimate-test-reporter'
2015-09-17 13:53:43 -07:00
CodeClimate::TestReporter.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