spec/spec_helper.rb in lita-locker-1.0.8 vs spec/spec_helper.rb in lita-locker-1.0.9

- old
+ new

@@ -1,8 +1,8 @@ require 'simplecov' require 'coveralls' -SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[ +SimpleCov.formatters = [ SimpleCov::Formatter::HTMLFormatter, Coveralls::SimpleCov::Formatter ] SimpleCov.start { add_filter '/spec/' } @@ -17,6 +17,23 @@ registry.register_handler(Lita::Handlers::LockerHttp) registry.register_handler(Lita::Handlers::LockerLabels) registry.register_handler(Lita::Handlers::LockerMisc) registry.register_handler(Lita::Handlers::LockerResources) end +end + +RSpec.configure do |config| + 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 + + config.filter_run :focus + config.run_all_when_everything_filtered = true + config.default_formatter = 'doc' if config.files_to_run.one? + config.order = :random + + Kernel.srand config.seed end