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
0
Merge Requests
0
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
Boxiang Sun
gitlab-ce
Commits
5809400d
Commit
5809400d
authored
Sep 11, 2019
by
Krasimir Angelov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add tests for PagesDomain#pages_virtual_domain
parent
268c698f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
spec/models/pages_domain_spec.rb
spec/models/pages_domain_spec.rb
+12
-0
No files found.
spec/models/pages_domain_spec.rb
View file @
5809400d
...
...
@@ -556,4 +556,16 @@ describe PagesDomain do
)
end
end
describe
'.pages_virtual_domain'
do
let
(
:project
)
{
build
(
:project
)
}
subject
(
:pages_domain
)
{
build
(
:pages_domain
,
project:
project
)
}
it
'returns instance of Pages::VirtualDomain'
do
expect
(
Pages
::
VirtualDomain
).
to
receive
(
:new
).
with
([
project
],
domain:
pages_domain
).
and_call_original
expect
(
pages_domain
.
pages_virtual_domain
).
to
be_a
(
Pages
::
VirtualDomain
)
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