Sha256: 5fdbef3f051a537d2f098b26dc2f5eafc71a542f593a2c263f0711ff4d5d77c7

Contents?: true

Size: 991 Bytes

Versions: 5

Compression:

Stored size: 991 Bytes

Contents

require "bundler/setup"

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

<% if realm.build_pry %>
  require "pry"
  require "pry-byebug"
<% end %>

Dir[File.join(__dir__, "support", "shared_contexts", "**/*.rb")].sort.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
rubysmith-0.4.0 lib/rubysmith/templates/%project_name%/spec/spec_helper.rb.erb
rubysmith-0.3.0 lib/rubysmith/templates/%project_name%/spec/spec_helper.rb.erb
rubysmith-0.2.0 lib/rubysmith/templates/%project_name%/spec/spec_helper.rb.erb
rubysmith-0.1.1 lib/rubysmith/templates/%project_name%/spec/spec_helper.rb.erb
rubysmith-0.1.0 lib/rubysmith/templates/%project_name%/spec/spec_helper.rb.erb