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
c5e2e84a
Commit
c5e2e84a
authored
Oct 05, 2021
by
Alper Akgun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve trial controller specs
parent
f049b19c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
ee/spec/controllers/trials_controller_spec.rb
ee/spec/controllers/trials_controller_spec.rb
+5
-5
No files found.
ee/spec/controllers/trials_controller_spec.rb
View file @
c5e2e84a
...
...
@@ -139,7 +139,7 @@ RSpec.describe TrialsController do
post_create_lead
end
it
"tracks for the combined_registration experiment"
do
it
'tracks for the combined_registration experiment'
do
expect
(
experiment
(
:combined_registration
)).
to
track
(
:create_trial
).
on_next_instance
post_create_lead
...
...
@@ -170,7 +170,7 @@ RSpec.describe TrialsController do
first_name:
user
.
first_name
,
last_name:
user
.
last_name
,
phone_number:
'1111111111'
,
number_of_users:
"20"
,
number_of_users:
'20'
,
country:
'IN'
}
end
...
...
@@ -447,7 +447,7 @@ RSpec.describe TrialsController do
end
end
it
"calls the ApplyTrialService with correct parameters"
do
it
'calls the ApplyTrialService with correct parameters'
do
gl_com_params
=
{
gitlab_com_trial:
true
,
sync_to_gl:
true
}
post_params
=
{
namespace_id:
namespace
.
id
.
to_s
,
...
...
@@ -511,7 +511,7 @@ RSpec.describe TrialsController do
end
context
'when cannot find the namespace'
do
let
(
:namespace_id
)
{
'invalid-namespace-id'
}
let
(
:namespace_id
)
{
non_existing_record_id
.
to_s
}
it
'returns 404'
do
is_expected
.
to
have_gitlab_http_status
(
:not_found
)
...
...
@@ -555,7 +555,7 @@ RSpec.describe TrialsController do
end
end
it
"calls the ExtendReactivateTrialService with correct parameters"
do
it
'calls the ExtendReactivateTrialService with correct parameters'
do
gl_com_params
=
{
gitlab_com_trial:
true
}
put_params
=
{
namespace_id:
namespace
.
id
.
to_s
,
...
...
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