Refactoring: Split up RSpec rails_helper into separate support files.
This commit is contained in:
parent
a00f3c51a8
commit
50162cc250
4 changed files with 13 additions and 0 deletions
2
spec/support/perform_package_migrations.rb
Normal file
2
spec/support/perform_package_migrations.rb
Normal file
|
@ -0,0 +1,2 @@
|
|||
# make sure that all migrations of linked packages are executed
|
||||
Package::Migration.linked
|
9
spec/support/time_helper.rb
Normal file
9
spec/support/time_helper.rb
Normal 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
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue