Sha256: f79d10d681fd3ce0f4b682abdc556dc9a6290aa77fa262704ea9bad512c00d0f

Contents?: true

Size: 1.15 KB

Versions: 7

Compression:

Stored size: 1.15 KB

Contents

# frozen_string_literal: true

require "rails-controller-testing"
require "rspec/rails"
require "rspec/cells"
require "byebug"
require "rectify/rspec"
require "wisper/rspec/stub_wisper_publisher"
require "db-query-matchers"
require "action_view/helpers/sanitize_helper"
require "axe-rspec"
require "w3c_rspec_validators"

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

require_relative "factories"

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 Rectify::RSpec::Helpers
  config.include ActionView::Helpers::SanitizeHelper
  config.include ERB::Util
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
decidim-dev-0.25.2 lib/decidim/dev/test/spec_helper.rb
decidim-dev-0.25.1 lib/decidim/dev/test/spec_helper.rb
decidim-dev-0.25.0 lib/decidim/dev/test/spec_helper.rb
decidim-dev-0.25.0.rc4 lib/decidim/dev/test/spec_helper.rb
decidim-dev-0.25.0.rc3 lib/decidim/dev/test/spec_helper.rb
decidim-dev-0.25.0.rc2 lib/decidim/dev/test/spec_helper.rb
decidim-dev-0.25.0.rc1 lib/decidim/dev/test/spec_helper.rb