2018-08-07 22:34:08 +03:00
|
|
|
if ENV["COVERALLS"] || ENV["SIMPLECOV"]
|
|
|
|
require "simplecov"
|
|
|
|
|
|
|
|
if ENV["COVERALLS"]
|
|
|
|
require "coveralls"
|
|
|
|
SimpleCov.formatter = Coveralls::SimpleCov::Formatter
|
|
|
|
end
|
|
|
|
|
|
|
|
SimpleCov.start do
|
|
|
|
root File.expand_path("../..", __FILE__)
|
|
|
|
add_filter "spec/"
|
|
|
|
add_filter "db/migrate"
|
|
|
|
add_filter "gems/"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-07-14 23:44:44 +03:00
|
|
|
require 'rails_helper'
|
|
|
|
require_relative 'support/iam_helpers.rb'
|
2018-09-11 18:54:23 +03:00
|
|
|
require_relative "support/shared_examples.rb"
|
2017-07-14 23:44:44 +03:00
|
|
|
|
|
|
|
SiteSetting.auth0_client_id = 'the_best_client_id'
|
|
|
|
|
|
|
|
RSpec.configure do |c|
|
|
|
|
c.include IAMHelpers
|
|
|
|
end
|