Sha256: 97c3dcebb65a07e6f6e1e3348c9173ac609997c4071a54293e61634617266154

Contents?: true

Size: 1.21 KB

Versions: 12

Compression:

Stored size: 1.21 KB

Contents

require "bundler/setup"
Bundler.require :tools

<% if configuration.build_simple_cov %>
  require "simplecov"
  SimpleCov.start { enable_coverage :branch }
<% end %>

require "<%= configuration.project_path %>"
<% if configuration.build_refinements %>
  require "refinements"
<% end %>

<% if configuration.build_refinements %>
  using Refinements::Pathnames

  Pathname.require_tree __dir__, "support/shared_contexts/**/*.rb"
<% else %>

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

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

12 entries across 12 versions & 1 rubygems

Version Path
rubysmith-3.0.0 lib/rubysmith/templates/%project_name%/spec/spec_helper.rb.erb
rubysmith-2.0.2 lib/rubysmith/templates/%project_name%/spec/spec_helper.rb.erb
rubysmith-2.0.1 lib/rubysmith/templates/%project_name%/spec/spec_helper.rb.erb
rubysmith-2.0.0 lib/rubysmith/templates/%project_name%/spec/spec_helper.rb.erb
rubysmith-1.3.0 lib/rubysmith/templates/%project_name%/spec/spec_helper.rb.erb
rubysmith-1.2.0 lib/rubysmith/templates/%project_name%/spec/spec_helper.rb.erb
rubysmith-1.1.1 lib/rubysmith/templates/%project_name%/spec/spec_helper.rb.erb
rubysmith-1.1.0 lib/rubysmith/templates/%project_name%/spec/spec_helper.rb.erb
rubysmith-1.0.0 lib/rubysmith/templates/%project_name%/spec/spec_helper.rb.erb
rubysmith-0.16.1 lib/rubysmith/templates/%project_name%/spec/spec_helper.rb.erb
rubysmith-0.16.0 lib/rubysmith/templates/%project_name%/spec/spec_helper.rb.erb
rubysmith-0.15.0 lib/rubysmith/templates/%project_name%/spec/spec_helper.rb.erb