Commit a89f1dda authored by Douwe Maan's avatar Douwe Maan

Merge branch 'upgrade-license-gem' into 'master'

Destroy licenses in test env to ensure a clean state and bump gitlab-license to 1.0.0

Specs would fail if an existing license in the DB were generated with a different private key.

Closes #643

See merge request !549
parents c322ced6 e5d672d8
...@@ -243,7 +243,7 @@ gem 'select2-rails', '~> 3.5.9' ...@@ -243,7 +243,7 @@ gem 'select2-rails', '~> 3.5.9'
gem 'virtus', '~> 1.0.1' gem 'virtus', '~> 1.0.1'
gem 'net-ssh', '~> 3.0.1' gem 'net-ssh', '~> 3.0.1'
gem 'base32', '~> 0.3.0' gem 'base32', '~> 0.3.0'
gem "gitlab-license", "~> 0.0.4" gem "gitlab-license", "~> 1.0"
# Sentry integration # Sentry integration
gem 'sentry-raven', '~> 1.1.0' gem 'sentry-raven', '~> 1.1.0'
......
...@@ -295,7 +295,7 @@ GEM ...@@ -295,7 +295,7 @@ GEM
diff-lcs (~> 1.1) diff-lcs (~> 1.1)
mime-types (>= 1.16, < 3) mime-types (>= 1.16, < 3)
posix-spawn (~> 0.3) posix-spawn (~> 0.3)
gitlab-license (0.0.4) gitlab-license (1.0.0)
gitlab_git (10.2.3) gitlab_git (10.2.3)
activesupport (~> 4.0) activesupport (~> 4.0)
charlock_holmes (~> 0.7.3) charlock_holmes (~> 0.7.3)
......
...@@ -29,6 +29,7 @@ Spinach.hooks.before_run do ...@@ -29,6 +29,7 @@ Spinach.hooks.before_run do
include ActiveJob::TestHelper include ActiveJob::TestHelper
RSpec::Mocks.setup RSpec::Mocks.setup
TestEnv.init(mailer: false) TestEnv.init(mailer: false)
License.destroy_all
TestLicense.init TestLicense.init
# skip pre-receive hook check so we can use # skip pre-receive hook check so we can use
......
...@@ -47,6 +47,7 @@ RSpec.configure do |config| ...@@ -47,6 +47,7 @@ RSpec.configure do |config|
end end
config.before(:all) do config.before(:all) do
License.destroy_all
TestLicense.init TestLicense.init
end end
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