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
500c8c23
Commit
500c8c23
authored
Aug 27, 2020
by
Dallas Reedy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add specs for setup_for_company_label_text helper
parent
1e32cb57
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
ee/spec/helpers/ee/registrations_helper_spec.rb
ee/spec/helpers/ee/registrations_helper_spec.rb
+20
-0
No files found.
ee/spec/helpers/ee/registrations_helper_spec.rb
View file @
500c8c23
...
...
@@ -70,6 +70,26 @@ RSpec.describe EE::RegistrationsHelper do
end
end
describe
'#setup_for_company_label_text'
do
before
do
allow
(
helper
).
to
receive
(
:in_subscription_flow?
).
and_return
(
in_subscription_flow
)
allow
(
helper
).
to
receive
(
:in_trial_flow?
).
and_return
(
in_trial_flow
)
end
subject
{
helper
.
setup_for_company_label_text
}
where
(
:in_subscription_flow
,
:in_trial_flow
,
:text
)
do
true
|
true
|
'Who will be using this GitLab subscription?'
true
|
false
|
'Who will be using this GitLab subscription?'
false
|
true
|
'Who will be using this GitLab trial?'
false
|
false
|
'Who will be using GitLab?'
end
with_them
do
it
{
is_expected
.
to
eq
(
text
)
}
end
end
describe
'#visibility_level_options'
do
let
(
:user
)
{
build
(
:user
)
}
...
...
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