Sha256: feeea2bef0f213752c6f3d5389542d6f83bae4a26f2f9e1646e4cc0068ba6df7

Contents?: true

Size: 755 Bytes

Versions: 5

Compression:

Stored size: 755 Bytes

Contents

# frozen_string_literal: true

require "./config/boot"
Bundler.require(:test)

require "capybara/rspec"
require "phlex/testing/capybara"
require "dry/inflector"

inflector = Dry::Inflector.new

RSpec.configure do |config|
  config.expect_with :rspec do |expectations|
    expectations.include_chain_clauses_in_custom_matcher_descriptions = true
  end

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

  config.shared_context_metadata_behavior = :apply_to_host_groups

  %w[views].each do |type|
    config.define_derived_metadata(file_path: %r{spec/#{type}}) do |metadata|
      metadata[:type] ||= inflector.singularize(type).to_sym
    end
  end

  config.include Phlex::Testing::Capybara::ViewHelper, type: :view
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
staticky-0.3.1 site_template/spec/spec_helper.rb
staticky-0.3.0 site_template/spec/spec_helper.rb
staticky-0.2.0 site_template/spec/spec_helper.rb
staticky-0.1.1 site_template/spec/spec_helper.rb
staticky-0.1.0 site_template/spec/spec_helper.rb