Sha256: f7f4d75fd29c3a4381908e397554f3db68faf6c2da1d85e2ce08cc8dd1c6abd0

Contents?: true

Size: 1.16 KB

Versions: 2

Compression:

Stored size: 1.16 KB

Contents

# frozen_string_literal: true

ENV["RAILS_ENV"] ||= "test"

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

# 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!

  # 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
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
decidim-dev-0.10.1 lib/decidim/dev/test/spec_helper.rb
decidim-dev-0.10.0 lib/decidim/dev/test/spec_helper.rb