Sha256: c4e8074968da2d4b704e4e1df46498642ef3c067c993285731a2beebad2ada8d

Contents?: true

Size: 1.12 KB

Versions: 5

Compression:

Stored size: 1.12 KB

Contents

require "bundler/setup"
<%- if config.dig(:generate, :code_climate) -%>
require "simplecov"
<%- end -%>
<%- if config.dig(:generate, :pry) -%>
require "pry"
require "pry-byebug"
<%- end -%>
<%- unless config.dig(:generate, :engine) -%>
require "<%= config.dig(:gem, :path) %>"
<%- end -%>

<%- if config.dig(:generate, :code_climate) -%>
SimpleCov.start
<%- end -%>

Dir[File.join(__dir__, "support", "shared_contexts", "**/*.rb")].each(&method(:require))

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

5 entries across 5 versions & 1 rubygems

Version Path
gemsmith-13.8.0 lib/gemsmith/templates/%gem_name%/spec/spec_helper.rb.tt
gemsmith-13.7.2 lib/gemsmith/templates/%gem_name%/spec/spec_helper.rb.tt
gemsmith-13.7.1 lib/gemsmith/templates/%gem_name%/spec/spec_helper.rb.tt
gemsmith-13.7.0 lib/gemsmith/templates/%gem_name%/spec/spec_helper.rb.tt
gemsmith-13.6.0 lib/gemsmith/templates/%gem_name%/spec/spec_helper.rb.tt