2013-05-29 07:11:57 +02:00
|
|
|
require 'simplecov'
|
2013-05-30 19:38:52 +02:00
|
|
|
SimpleCov.root(File.expand_path(File.dirname(__FILE__) + '/..'))
|
|
|
|
|
|
|
|
require 'coveralls'
|
2013-11-19 07:22:18 +01:00
|
|
|
Coveralls.wear!
|
2014-06-20 23:09:51 +02:00
|
|
|
|
|
|
|
require 'codeclimate-test-reporter'
|
2015-09-17 22:53:43 +02:00
|
|
|
CodeClimate::TestReporter.start
|
|
|
|
|
2015-06-25 15:39:56 +02:00
|
|
|
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
|