Refactoring: Split up RSpec rails_helper into separate support files.

This commit is contained in:
Thorsten Eckel 2018-09-28 17:05:01 +02:00
parent a00f3c51a8
commit 50162cc250
4 changed files with 13 additions and 0 deletions

View file

@ -0,0 +1,2 @@
# make sure that all migrations of linked packages are executed
Package::Migration.linked

View file

@ -0,0 +1,9 @@
RSpec.configure do |config|
# make usage of time travel helpers possible
config.include ActiveSupport::Testing::TimeHelpers
# avoid stuck time issues
config.after(:each) do
travel_back
end
end

View file

@ -1,6 +1,8 @@
# allow requests to:
# - Zammad webservices
# - Google (calendar)
# - exchange.example.com (MS Exchange TCR mocks)
# - localhost (Selenium server control)
allowed_sites = lambda do |uri|
['zammad.com', 'google.com', 'exchange.example.com'].any? do |site|
uri.host.include?(site)