Sha256: ef3ea6d7735c21da5bc6175238d85fcd7d8c4ab67e8d4fab7f93c93488dae504

Contents?: true

Size: 771 Bytes

Versions: 4

Compression:

Stored size: 771 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 "rails"
require "active_support/core_ext/string"
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

4 entries across 4 versions & 1 rubygems

Version Path
decidim-dev-0.9.3 lib/decidim/dev/test/base_spec_helper.rb
decidim-dev-0.9.2 lib/decidim/dev/test/base_spec_helper.rb
decidim-dev-0.9.1 lib/decidim/dev/test/base_spec_helper.rb
decidim-dev-0.9.0 lib/decidim/dev/test/base_spec_helper.rb