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
b5fd1d08
Commit
b5fd1d08
authored
Apr 04, 2020
by
Francisco Javier López
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Include Gitlab::Shell in Snippets
parent
853193be
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
1 deletion
+2
-1
app/models/concerns/has_repository.rb
app/models/concerns/has_repository.rb
+1
-0
app/models/project.rb
app/models/project.rb
+0
-1
spec/support/shared_examples/models/concerns/has_repository_shared_examples.rb
...xamples/models/concerns/has_repository_shared_examples.rb
+1
-0
No files found.
app/models/concerns/has_repository.rb
View file @
b5fd1d08
...
...
@@ -11,6 +11,7 @@ module HasRepository
extend
ActiveSupport
::
Concern
include
AfterCommitQueue
include
Referable
include
Gitlab
::
ShellAdapter
include
Gitlab
::
Utils
::
StrongMemoize
delegate
:base_dir
,
:disk_path
,
to: :storage
...
...
app/models/project.rb
View file @
b5fd1d08
...
...
@@ -4,7 +4,6 @@ require 'carrierwave/orm/activerecord'
class
Project
<
ApplicationRecord
include
Gitlab
::
ConfigHelper
include
Gitlab
::
ShellAdapter
include
Gitlab
::
VisibilityLevel
include
AccessRequestable
include
Avatarable
...
...
spec/support/shared_examples/models/concerns/has_repository_shared_examples.rb
View file @
b5fd1d08
...
...
@@ -167,6 +167,7 @@ RSpec.shared_examples 'model with repository' do
describe
'Respond to'
do
it
{
is_expected
.
to
respond_to
(
:base_dir
)
}
it
{
is_expected
.
to
respond_to
(
:disk_path
)
}
it
{
is_expected
.
to
respond_to
(
:gitlab_shell
)
}
end
describe
'.pick_repository_storage'
do
...
...
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