spec/spec_helper.rb in bogus-0.1.4 vs spec/spec_helper.rb in bogus-0.1.5
- old
+ new
@@ -1,7 +1,11 @@
require 'simplecov'
-require 'coveralls'
+begin
+ require "coveralls"
+rescue LoadError
+ warn "warning: coveralls gem not found; skipping Coveralls"
+end
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
SimpleCov::Formatter::HTMLFormatter,
Coveralls::SimpleCov::Formatter]
@@ -15,9 +19,10 @@
require 'rr'
require_relative 'support/sample_fake'
require_relative 'support/fake_creator_of_fakes'
require_relative 'support/matchers'
+require_relative 'support/shared_examples_for_keyword_arguments'
RSpec.configure do |config|
config.color_enabled = true
config.mock_framework = :rr
end