Commit e5d672d8 authored by Stan Hu's avatar Stan Hu

Destroy all licenses in spec env to ensure a clean state and no key mix-up

parent 2a7a0af7
......@@ -29,6 +29,7 @@ Spinach.hooks.before_run do
include ActiveJob::TestHelper
RSpec::Mocks.setup
TestEnv.init(mailer: false)
License.destroy_all
TestLicense.init
# skip pre-receive hook check so we can use
......
......@@ -48,6 +48,7 @@ RSpec.configure do |config|
end
config.before(:all) do
License.destroy_all
TestLicense.init
end
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment