Sha256: 2ff5a3545a8068a9afe79178cacb5f49d8f2b90a15a1dae059141f810667e932

Contents?: true

Size: 1.35 KB

Versions: 4

Compression:

Stored size: 1.35 KB

Contents

# frozen_string_literal: true

require "rails-controller-testing"
require "rspec/rails"
require "rspec/cells"
require "factory_bot_rails"
require "byebug"
require "rectify/rspec"
require "wisper/rspec/stub_wisper_publisher"
require "db-query-matchers"
require "action_view/helpers/sanitize_helper"
require_relative "factories"
require_relative "screenshot_helper_ext"

# Requires supporting files with custom matchers and macros, etc,
# in ./rspec_support/ and its subdirectories.
Dir["#{__dir__}/rspec_support/**/*.rb"].each { |f| require f }

RSpec.configure do |config|
  config.color = true
  config.fail_fast = ENV["FAIL_FAST"] == "true"
  config.infer_spec_type_from_file_location!
  config.mock_with :rspec
  config.order = :random
  config.raise_errors_for_deprecations!
  config.example_status_persistence_file_path = ".rspec-failures"

  # If you're not using ActiveRecord, or you'd prefer not to run each of your
  # examples within a transaction, comment the following line or assign false
  # instead of true.
  config.use_transactional_fixtures = true

  config.include AttachmentHelpers
  config.include TranslationHelpers
  config.include Rectify::RSpec::Helpers
  config.include ActionView::Helpers::SanitizeHelper
  config.include ERB::Util
  config.include Capybara::ReactSelect, type: :system
  config.include Decidim::ScreenshotHelperExt, type: :system
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
decidim-dev-0.12.2 lib/decidim/dev/test/spec_helper.rb
decidim-dev-0.12.1 lib/decidim/dev/test/spec_helper.rb
decidim-dev-0.12.0 lib/decidim/dev/test/spec_helper.rb
decidim-dev-0.12.0.pre lib/decidim/dev/test/spec_helper.rb