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
e712d804
Commit
e712d804
authored
Apr 01, 2019
by
Rémy Coutable
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[EE] Reduce diff with CE in spec/models/project_wiki_spec.rb
Signed-off-by:
Rémy Coutable
<
remy@rymai.me
>
parent
5e96f822
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
9 deletions
+20
-9
ee/spec/models/project_wiki_spec.rb
ee/spec/models/project_wiki_spec.rb
+20
-0
spec/models/project_wiki_spec.rb
spec/models/project_wiki_spec.rb
+0
-9
No files found.
ee/spec/models/project_wiki_spec.rb
0 → 100644
View file @
e712d804
# frozen_string_literal: true
require
"spec_helper"
describe
ProjectWiki
do
let
(
:user
)
{
create
(
:user
,
:commit_email
)
}
let
(
:project
)
{
create
(
:project
,
:wiki_repo
,
namespace:
user
.
namespace
)
}
let
(
:project_wiki
)
{
described_class
.
new
(
project
,
user
)
}
subject
{
project_wiki
}
describe
"#kerberos_url_to_repo"
do
it
'returns valid kerberos url for this repo'
do
gitlab_kerberos_url
=
Gitlab
.
config
.
build_gitlab_kerberos_url
repo_kerberos_url
=
"
#{
gitlab_kerberos_url
}
/
#{
subject
.
full_path
}
.git"
expect
(
subject
.
kerberos_url_to_repo
).
to
eq
(
repo_kerberos_url
)
end
end
end
spec/models/project_wiki_spec.rb
View file @
e712d804
# coding: utf-8
# frozen_string_literal: true
require
"spec_helper"
...
...
@@ -56,14 +55,6 @@ describe ProjectWiki do
end
end
describe
"#kerberos_url_to_repo"
do
it
'returns valid kerberos url for this repo'
do
gitlab_kerberos_url
=
Gitlab
.
config
.
build_gitlab_kerberos_url
repo_kerberos_url
=
"
#{
gitlab_kerberos_url
}
/
#{
subject
.
full_path
}
.git"
expect
(
subject
.
kerberos_url_to_repo
).
to
eq
(
repo_kerberos_url
)
end
end
describe
"#wiki_base_path"
do
it
"returns the wiki base path"
do
wiki_base_path
=
"
#{
Gitlab
.
config
.
gitlab
.
relative_url_root
}
/
#{
project
.
full_path
}
/wikis"
...
...
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