Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
e609b44f
Commit
e609b44f
authored
Apr 14, 2021
by
Nicolas Dular
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change unless style and fix typo
parent
9723a124
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
16 deletions
+14
-16
spec/workers/namespaces/in_product_marketing_emails_worker_spec.rb
...ers/namespaces/in_product_marketing_emails_worker_spec.rb
+14
-16
No files found.
spec/workers/namespaces/in_product_marketing_emails_worker_spec.rb
View file @
e609b44f
...
...
@@ -5,22 +5,20 @@ 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
let
(
:is_gitlab_com
)
{
false
}
where
(
:in_product_marketing_emails_enabled
,
:experiment_active
,
:executes_service
)
do
true
|
true
|
1
true
|
false
|
1
false
|
false
|
0
false
|
true
|
0
end
with_them
do
it_behaves_like
'in-product marketing email'
end
# 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
true
|
true
|
1
true
|
false
|
1
false
|
false
|
0
false
|
true
|
0
end
with_them
do
it_behaves_like
'in-product marketing email'
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment