Commit 3fa5ee89 authored by Yorick Peterse's avatar Yorick Peterse

Make usage content spec the same for CE and EE

This changes the spec in question so that it is the same for both CE and
EE. This requires an `if Gitlab.ee?` since EE requires that we stub an
EE specific module, but doing so in CE will break the spec there.
parent 3d052438
...@@ -8,7 +8,15 @@ describe 'Usage stats consent' do ...@@ -8,7 +8,15 @@ describe 'Usage stats consent' do
let(:message) { 'To help improve GitLab, we would like to periodically collect usage information.' } let(:message) { 'To help improve GitLab, we would like to periodically collect usage information.' }
before do before do
allow(user).to receive(:has_current_license?).and_return false if Gitlab.ee?
allow_any_instance_of(EE::User)
.to receive(:has_current_license?)
.and_return(false)
else
allow(user)
.to receive(:has_current_license?)
.and_return(false)
end
gitlab_sign_in(user) gitlab_sign_in(user)
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