Commit e609b44f authored by Nicolas Dular's avatar Nicolas Dular

Change unless style and fix typo

parent 9723a124
......@@ -5,10 +5,9 @@ require 'spec_helper'
RSpec.describe Namespaces::InProductMarketingEmailsWorker, '#perform' do
using RSpec::Parameterized::TableSyntax
# Running these tests in EE would call the overriden method, which we can't test in CE.
# EE is covered in a separate EE spec.
unless Gitlab.ee?
context 'not on gitlab.com' do
# Running this in EE would call the overridden method, which can't be tested in CE.
# The EE code is covered in a separate EE spec.
context 'not on gitlab.com', unless: Gitlab.ee? do
let(:is_gitlab_com) { false }
where(:in_product_marketing_emails_enabled, :experiment_active, :executes_service) do
......@@ -22,7 +21,6 @@ RSpec.describe Namespaces::InProductMarketingEmailsWorker, '#perform' do
it_behaves_like 'in-product marketing email'
end
end
end
context 'on gitlab.com' do
let(:is_gitlab_com) { true }
......
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