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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
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
Show 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
...
@@ -24,11 +24,11 @@ class Repository
end
end
def
method_missing
(
m
,
*
args
,
&
block
)
def
method_missing
(
m
,
*
args
,
&
block
)
@
raw_repository
.
send
(
m
,
*
args
,
&
block
)
raw_repository
.
send
(
m
,
*
args
,
&
block
)
end
end
def
respond_to?
(
method
)
def
respond_to?
(
method
)
return
true
if
@
raw_repository
.
respond_to?
(
method
)
return
true
if
raw_repository
.
respond_to?
(
method
)
super
super
end
end
...
...
spec/support/stubbed_repository.rb
View file @
7bb71bb0
...
@@ -10,7 +10,7 @@ class Project
...
@@ -10,7 +10,7 @@ class Project
if
path
==
"empty"
||
!
path
if
path
==
"empty"
||
!
path
nil
nil
else
else
GitLabTestRepo
.
new
(
path_with_namespace
)
GitLabTestRepo
.
new
(
Rails
.
root
.
join
(
'tmp'
,
'repositories'
,
'gitlabhq'
),
'master'
)
end
end
end
end
...
@@ -39,11 +39,7 @@ class MergeRequest
...
@@ -39,11 +39,7 @@ class MergeRequest
end
end
end
end
class
GitLabTestRepo
<
Gitlab
::
Git
::
Repository
class
GitLabTestRepo
<
Repository
def
repo
@repo
||=
Grit
::
Repo
.
new
(
Rails
.
root
.
join
(
'tmp'
,
'repositories'
,
'gitlabhq'
))
end
# patch repo size (in mb)
# patch repo size (in mb)
def
size
def
size
12.45
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