Sha256: 0b947ef3ee7fd86e2f4437a5c1bf25a5152d1b0f9887c357635482dc81d200a6

Contents?: true

Size: 949 Bytes

Versions: 10

Compression:

Stored size: 949 Bytes

Contents

# frozen_string_literal: true

require "decidim/dev"

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

engine_spec_dir = File.join(Dir.pwd, "spec")

require "simplecov" if ENV["SIMPLECOV"]

require "decidim/core"
require "decidim/core/test"
require "decidim/admin/test"

require_relative "rspec_support/component.rb"
require_relative "rspec_support/authorization.rb"

require "#{Decidim::Dev.dummy_app_path}/config/environment"

Dir["#{engine_spec_dir}/shared/**/*.rb"].each { |f| require f }

require "paper_trail/frameworks/rspec"

require_relative "spec_helper"

if ENV["CI"]
  require "rspec/retry"

  RSpec.configure do |config|
    # show retry status in spec process
    config.verbose_retry = true
    # show exception that triggers a retry if verbose_retry is set to true
    config.display_try_failure_messages = true

    # Retry failed test, set to 1 for normal behavior
    config.default_retry_count = ENV.fetch("FAILED_TEST_RETRY_COUNT") { 3 }
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
decidim-dev-0.23.6 lib/decidim/dev/test/base_spec_helper.rb
decidim-dev-0.23.5 lib/decidim/dev/test/base_spec_helper.rb
decidim-dev-0.23.4 lib/decidim/dev/test/base_spec_helper.rb
decidim-dev-0.23.3 lib/decidim/dev/test/base_spec_helper.rb
decidim-dev-0.23.2 lib/decidim/dev/test/base_spec_helper.rb
decidim-dev-0.23.1 lib/decidim/dev/test/base_spec_helper.rb
decidim-dev-0.23.1.rc1 lib/decidim/dev/test/base_spec_helper.rb
decidim-dev-0.23.0 lib/decidim/dev/test/base_spec_helper.rb
decidim-dev-0.22.0 lib/decidim/dev/test/base_spec_helper.rb
decidim-dev-0.21.0 lib/decidim/dev/test/base_spec_helper.rb