Sha256: 25986ca354b6d23c826f42ae329c1435e14c05d08be70efab49b9c0b6a61d594
Contents?: true
Size: 1.24 KB
Versions: 8
Compression:
Stored size: 1.24 KB
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" SimpleCov.root(root_path) SimpleCov.start do filters.clear add_filter "/test/" add_filter "/spec/" add_filter "bundle.js" add_filter "/vendor/" add_filter do |src| src.filename !~ /^#{root_path}/ end end if ENV["CI"] require "codecov" SimpleCov.formatter = SimpleCov::Formatter::Codecov end end require "rails" require "active_support/core_ext/string" require "decidim/core" require "decidim/core/test" require "#{__dir__}/rspec_support/feature.rb" begin require "#{Decidim::Dev.dummy_app_path}/config/environment" rescue LoadError puts "Could not load dummy application. Please ensure you have run `bundle exec rake decidim:generate_test_app`" puts "Tried to load it from #{Decidim::Dev.dummy_app_path}" exit(-1) end # Requires supporting files with custom matchers and macros, etc, # in ./support/ and its subdirectories. Dir["#{engine_spec_dir}/support/**/*.rb"].each { |f| require f } Dir["#{engine_spec_dir}/shared/**/*.rb"].each { |f| require f } require_relative "spec_helper"
Version data entries
8 entries across 8 versions & 2 rubygems