Sha256: 51ecfea80aed94ad65dc37b6c96c6aebfe6ac8951e4c5b79f899a4f6f7f7e56e

Contents?: true

Size: 1.12 KB

Versions: 3

Compression:

Stored size: 1.12 KB

Contents

require "bundler/setup"
Bundler.require :tools

<%- if config.dig(:generate, :simple_cov) -%>
require "simplecov"
SimpleCov.start { enable_coverage :branch }
<%- end -%>

<%- unless config.dig(:generate, :engine) -%>
require "<%= config.dig(:gem, :path) %>"
<%- end -%>

GC.auto_compact = true
GC.verify_compaction_references double_heap: true, toward: :empty

Dir[File.join(__dir__, "support", "shared_contexts", "**/*.rb")].sort.each { |path| require path }

RSpec.configure do |config|
  config.color = true
  config.disable_monkey_patching!
  config.example_status_persistence_file_path = "./tmp/rspec-examples.txt"
  config.filter_run_when_matching :focus
  config.formatter = ENV["CI"] == "true" ? :progress : :documentation
  config.order = :random
  config.shared_context_metadata_behavior = :apply_to_host_groups
  config.warnings = true

  config.expect_with :rspec do |expectations|
    expectations.syntax = :expect
    expectations.include_chain_clauses_in_custom_matcher_descriptions = true
  end

  config.mock_with :rspec do |mocks|
    mocks.verify_doubled_constant_names = true
    mocks.verify_partial_doubles = true
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
gemsmith-15.5.0 lib/gemsmith/templates/%gem_name%/spec/spec_helper.rb.tt
gemsmith-15.4.0 lib/gemsmith/templates/%gem_name%/spec/spec_helper.rb.tt
gemsmith-15.3.0 lib/gemsmith/templates/%gem_name%/spec/spec_helper.rb.tt