Sha256: 82f23237bf56d4248daff70a294df39d7d68877ba7173fe9b219b929c921041f

Contents?: true

Size: 1.5 KB

Versions: 37

Compression:

Stored size: 1.5 KB

Contents

# frozen_string_literal: true

require 'simplecov'
require 'simplecov_json_formatter'

SimpleCov.start do
  enable_coverage :branch
  enable_coverage :line

  add_filter 'sandbox/'
  add_filter 'spec/'
  add_filter 'lib/ckeditor5/rails/version.rb' # Fix bug in coverage calculation
  add_group 'Library', 'lib/'

  track_files 'lib/**/*.rb'

  minimum_coverage 100

  formatters = [
    SimpleCov::Formatter::HTMLFormatter,
    SimpleCov::Formatter::JSONFormatter
  ]

  formatter SimpleCov::Formatter::MultiFormatter.new(formatters)
end

ENV['RAILS_ENV'] ||= 'test'

require File.expand_path('../sandbox/config/application', __dir__)

require 'pry'
require 'spec_helper'
require 'rspec/rails'
require 'rspec/expectations'
require 'rspec-html-matchers'

Dir[File.expand_path('support/**/*.rb', __dir__)].each { |f| require f }

Rails.application.initialize! unless Rails.application.initialized?

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
  config.filter_run_when_matching :focus
  config.disable_monkey_patching!

  config.default_formatter = 'doc' if config.files_to_run.one?
  config.profile_examples = 10

  config.order = :random

  Kernel.rand config.seed

  config.before(:each) do
    Rails.application.load_seed
  end

  config.include RSpecHtmlMatchers
end

Version data entries

37 entries across 37 versions & 2 rubygems

Version Path
trusty-cms-7.0.9.1 vendor/bundle/ruby/3.3.0/gems/ckeditor5-1.24.9/spec/spec_helper.rb
ckeditor5-1.24.9 spec/spec_helper.rb
ckeditor5-1.24.8 spec/spec_helper.rb
ckeditor5-1.24.6 spec/spec_helper.rb
ckeditor5-1.24.5 spec/spec_helper.rb
ckeditor5-1.24.4 spec/spec_helper.rb
ckeditor5-1.24.3 spec/spec_helper.rb
ckeditor5-1.24.2 spec/spec_helper.rb
ckeditor5-1.24.1 spec/spec_helper.rb
ckeditor5-1.24.0 spec/spec_helper.rb
ckeditor5-1.23.5 spec/spec_helper.rb
ckeditor5-1.23.4 spec/spec_helper.rb
ckeditor5-1.23.3 spec/spec_helper.rb
ckeditor5-1.23.2 spec/spec_helper.rb
ckeditor5-1.23.1 spec/spec_helper.rb
ckeditor5-1.23.0 spec/spec_helper.rb
ckeditor5-1.22.0 spec/spec_helper.rb
ckeditor5-1.21.0 spec/spec_helper.rb
ckeditor5-1.20.1 spec/spec_helper.rb
ckeditor5-1.20.0 spec/spec_helper.rb