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
91af0cf4
Commit
91af0cf4
authored
Sep 11, 2019
by
Krasimir Angelov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add tests for Project#pages_lookup_path
parent
5809400d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
spec/models/project_spec.rb
spec/models/project_spec.rb
+11
-0
No files found.
spec/models/project_spec.rb
View file @
91af0cf4
...
...
@@ -5012,6 +5012,17 @@ describe Project do
end
end
describe
'#pages_lookup_path'
do
let
(
:pages_domain
)
{
build
(
:pages_domain
)
}
let
(
:project
)
{
build
(
:project
)
}
it
'returns instance of Pages::LookupPath'
do
expect
(
Pages
::
LookupPath
).
to
receive
(
:new
).
with
(
project
,
domain:
pages_domain
).
and_call_original
expect
(
project
.
pages_lookup_path
(
domain:
pages_domain
)).
to
be_a
(
Pages
::
LookupPath
)
end
end
def
rugged_config
rugged_repo
(
project
.
repository
).
config
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