Sha256: dbd8a15d76cff9da47e6165eec432446c867d886d869cc24ad53389d2946471a

Contents?: true

Size: 716 Bytes

Versions: 3

Compression:

Stored size: 716 Bytes

Contents

# frozen_string_literal: true

require "decidim/dev"

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

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

if ENV["SIMPLECOV"]
  require "simplecov/no_defaults"

  SimpleCov.root(root_path)
  require "simplecov/defaults"

  SimpleCov.command_name File.basename(Dir.pwd)
end

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"

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
decidim-dev-0.11.2 lib/decidim/dev/test/base_spec_helper.rb
decidim-dev-0.11.1 lib/decidim/dev/test/base_spec_helper.rb
decidim-dev-0.11.0.pre1 lib/decidim/dev/test/base_spec_helper.rb