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
f6b210ac
Commit
f6b210ac
authored
Apr 19, 2022
by
minahilnichols
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clean more specs
parent
010fa9e9
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
ee/spec/controllers/registrations/company_controller_spec.rb
ee/spec/controllers/registrations/company_controller_spec.rb
+1
-0
ee/spec/features/trial_registrations/company_information_spec.rb
.../features/trial_registrations/company_information_spec.rb
+4
-3
No files found.
ee/spec/controllers/registrations/company_controller_spec.rb
View file @
f6b210ac
...
@@ -101,6 +101,7 @@ RSpec.describe Registrations::CompanyController do
...
@@ -101,6 +101,7 @@ RSpec.describe Registrations::CompanyController do
expect
(
response
).
to
have_gitlab_http_status
(
:ok
)
expect
(
response
).
to
have_gitlab_http_status
(
:ok
)
expect
(
response
).
to
render_template
(
:new
)
expect
(
response
).
to
render_template
(
:new
)
expect
(
flash
[
:alert
]).
to
eq
(
'failed'
)
end
end
end
end
end
end
...
...
ee/spec/features/trial_registrations/company_information_spec.rb
View file @
f6b210ac
...
@@ -32,9 +32,9 @@ RSpec.describe 'Company Information', :js do
...
@@ -32,9 +32,9 @@ RSpec.describe 'Company Information', :js do
}
}
end
end
where
(
:service_response
,
:current_path
)
do
where
(
:service_response
,
:current_path
,
:page_content
)
do
ServiceResponse
.
success
|
new_users_sign_up_groups_project_path
ServiceResponse
.
success
|
new_users_sign_up_groups_project_path
|
'Create or import your first project'
ServiceResponse
.
error
(
message:
'failed'
)
|
users_sign_up_company_path
ServiceResponse
.
error
(
message:
'failed'
)
|
users_sign_up_company_path
|
'failed'
end
end
with_them
do
with_them
do
...
@@ -57,6 +57,7 @@ RSpec.describe 'Company Information', :js do
...
@@ -57,6 +57,7 @@ RSpec.describe 'Company Information', :js do
click_button
'Continue'
click_button
'Continue'
expect
(
page
).
to
have_current_path
(
current_path
,
ignore_query:
true
)
expect
(
page
).
to
have_current_path
(
current_path
,
ignore_query:
true
)
expect
(
page
).
to
have_content
(
page_content
)
end
end
end
end
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