Sha256: 136cafa668c7185423523fedd5920072a4907c490a56ae7940782a676d730801

Contents?: true

Size: 714 Bytes

Versions: 2

Compression:

Stored size: 714 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/feature.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

2 entries across 2 versions & 1 rubygems

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