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
Léo-Paul Géneau
gitlab-ce
Commits
7bb71bb0
Commit
7bb71bb0
authored
Apr 01, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix stubbed repo
parent
458631c5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
8 deletions
+4
-8
app/models/repository.rb
app/models/repository.rb
+2
-2
spec/support/stubbed_repository.rb
spec/support/stubbed_repository.rb
+2
-6
No files found.
app/models/repository.rb
View file @
7bb71bb0
...
...
@@ -24,11 +24,11 @@ class Repository
end
def
method_missing
(
m
,
*
args
,
&
block
)
@
raw_repository
.
send
(
m
,
*
args
,
&
block
)
raw_repository
.
send
(
m
,
*
args
,
&
block
)
end
def
respond_to?
(
method
)
return
true
if
@
raw_repository
.
respond_to?
(
method
)
return
true
if
raw_repository
.
respond_to?
(
method
)
super
end
...
...
spec/support/stubbed_repository.rb
View file @
7bb71bb0
...
...
@@ -10,7 +10,7 @@ class Project
if
path
==
"empty"
||
!
path
nil
else
GitLabTestRepo
.
new
(
path_with_namespace
)
GitLabTestRepo
.
new
(
Rails
.
root
.
join
(
'tmp'
,
'repositories'
,
'gitlabhq'
),
'master'
)
end
end
...
...
@@ -39,11 +39,7 @@ class MergeRequest
end
end
class
GitLabTestRepo
<
Gitlab
::
Git
::
Repository
def
repo
@repo
||=
Grit
::
Repo
.
new
(
Rails
.
root
.
join
(
'tmp'
,
'repositories'
,
'gitlabhq'
))
end
class
GitLabTestRepo
<
Repository
# patch repo size (in mb)
def
size
12.45
...
...
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