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
010fa9e9
Commit
010fa9e9
authored
Apr 19, 2022
by
minahilnichols
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup spec
parent
43ea422c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
ee/spec/controllers/registrations/company_controller_spec.rb
ee/spec/controllers/registrations/company_controller_spec.rb
+3
-2
No files found.
ee/spec/controllers/registrations/company_controller_spec.rb
View file @
010fa9e9
...
...
@@ -12,7 +12,7 @@ RSpec.describe Registrations::CompanyController do
allow
(
::
Gitlab
).
to
receive
(
:com?
).
and_return
(
true
)
end
shared_examples
'
an authenticated endpoint
'
do
shared_examples
'
user authentication
'
do
context
'when not authenticated'
do
let
(
:logged_in
)
{
false
}
...
...
@@ -41,7 +41,7 @@ RSpec.describe Registrations::CompanyController do
describe
'#new'
do
subject
{
get
:new
}
it_behaves_like
'
an authenticated endpoint
'
it_behaves_like
'
user authentication
'
it_behaves_like
'a dot-com only feature'
context
'on render'
do
...
...
@@ -49,6 +49,7 @@ RSpec.describe Registrations::CompanyController do
it
{
is_expected
.
to
render_template
(
:new
)
}
end
end
describe
'#create'
do
using
RSpec
::
Parameterized
::
TableSyntax
...
...
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