middleman/middleman-core/spec/spec_helper.rb

32 lines
679 B
Ruby

require 'simplecov'
SimpleCov.root(File.expand_path(File.dirname(__FILE__) + '/..'))
require 'coveralls'
Coveralls.wear!
require 'aruba/api'
RSpec.configure do |config|
config.include Aruba::Api
end
# 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