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
iv
gitlab-ce
Commits
f5dec306
Commit
f5dec306
authored
Apr 01, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use project_with_code factory where necessary
parent
9a26e9a0
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
20 additions
and
17 deletions
+20
-17
app/views/admin/projects/show.html.haml
app/views/admin/projects/show.html.haml
+13
-10
features/steps/project/project_browse_commits.rb
features/steps/project/project_browse_commits.rb
+1
-1
spec/controllers/commit_controller_spec.rb
spec/controllers/commit_controller_spec.rb
+1
-1
spec/controllers/commits_controller_spec.rb
spec/controllers/commits_controller_spec.rb
+1
-1
spec/controllers/merge_requests_controller_spec.rb
spec/controllers/merge_requests_controller_spec.rb
+1
-1
spec/controllers/tree_controller_spec.rb
spec/controllers/tree_controller_spec.rb
+1
-1
spec/features/gitlab_flavored_markdown_spec.rb
spec/features/gitlab_flavored_markdown_spec.rb
+1
-1
spec/helpers/gitlab_markdown_helper_spec.rb
spec/helpers/gitlab_markdown_helper_spec.rb
+1
-1
No files found.
app/views/admin/projects/show.html.haml
View file @
f5dec306
...
@@ -46,6 +46,7 @@
...
@@ -46,6 +46,7 @@
%span
.light
ssh:
%span
.light
ssh:
%strong
%strong
=
link_to
@project
.
ssh_url_to_repo
=
link_to
@project
.
ssh_url_to_repo
-
if
@project
.
repository
.
exists?
%li
%li
%span
.light
fs:
%span
.light
fs:
%strong
%strong
...
@@ -54,10 +55,12 @@
...
@@ -54,10 +55,12 @@
%li
%li
%span
.light
last commit:
%span
.light
last commit:
%strong
%strong
-
if
@repository
=
last_commit
(
@project
)
=
last_commit
(
@project
)
-
else
-
else
never
%li
%span
.light
repository:
%strong
.cred
does not exist
%li
%li
%span
.light
access:
%span
.light
access:
...
...
features/steps/project/project_browse_commits.rb
View file @
f5dec306
...
@@ -15,7 +15,7 @@ class ProjectBrowseCommits < Spinach::FeatureSteps
...
@@ -15,7 +15,7 @@ class ProjectBrowseCommits < Spinach::FeatureSteps
end
end
Then
'I see commits atom feed'
do
Then
'I see commits atom feed'
do
commit
=
CommitDecorator
.
decorate
(
@project
.
repository
.
commit
)
commit
=
@project
.
repository
.
commit
page
.
response_headers
[
'Content-Type'
].
should
have_content
(
"application/atom+xml"
)
page
.
response_headers
[
'Content-Type'
].
should
have_content
(
"application/atom+xml"
)
page
.
body
.
should
have_selector
(
"title"
,
:text
=>
"Recent commits to
#{
@project
.
name
}
"
)
page
.
body
.
should
have_selector
(
"title"
,
:text
=>
"Recent commits to
#{
@project
.
name
}
"
)
page
.
body
.
should
have_selector
(
"author email"
,
:text
=>
commit
.
author_email
)
page
.
body
.
should
have_selector
(
"author email"
,
:text
=>
commit
.
author_email
)
...
...
spec/controllers/commit_controller_spec.rb
View file @
f5dec306
require
'spec_helper'
require
'spec_helper'
describe
CommitController
do
describe
CommitController
do
let
(
:project
)
{
create
(
:project
)
}
let
(
:project
)
{
create
(
:project
_with_code
)
}
let
(
:user
)
{
create
(
:user
)
}
let
(
:user
)
{
create
(
:user
)
}
let
(
:commit
)
{
project
.
repository
.
last_commit_for
(
"master"
)
}
let
(
:commit
)
{
project
.
repository
.
last_commit_for
(
"master"
)
}
...
...
spec/controllers/commits_controller_spec.rb
View file @
f5dec306
require
'spec_helper'
require
'spec_helper'
describe
CommitsController
do
describe
CommitsController
do
let
(
:project
)
{
create
(
:project
)
}
let
(
:project
)
{
create
(
:project
_with_code
)
}
let
(
:user
)
{
create
(
:user
)
}
let
(
:user
)
{
create
(
:user
)
}
before
do
before
do
...
...
spec/controllers/merge_requests_controller_spec.rb
View file @
f5dec306
require
'spec_helper'
require
'spec_helper'
describe
MergeRequestsController
do
describe
MergeRequestsController
do
let
(
:project
)
{
create
(
:project
)
}
let
(
:project
)
{
create
(
:project
_with_code
)
}
let
(
:user
)
{
create
(
:user
)
}
let
(
:user
)
{
create
(
:user
)
}
let
(
:merge_request
)
{
create
(
:merge_request_with_diffs
,
project:
project
,
target_branch:
"bcf03b5d~3"
,
source_branch:
"bcf03b5d"
)
}
let
(
:merge_request
)
{
create
(
:merge_request_with_diffs
,
project:
project
,
target_branch:
"bcf03b5d~3"
,
source_branch:
"bcf03b5d"
)
}
...
...
spec/controllers/tree_controller_spec.rb
View file @
f5dec306
require
'spec_helper'
require
'spec_helper'
describe
TreeController
do
describe
TreeController
do
let
(
:project
)
{
create
(
:project
)
}
let
(
:project
)
{
create
(
:project
_with_code
)
}
let
(
:user
)
{
create
(
:user
)
}
let
(
:user
)
{
create
(
:user
)
}
before
do
before
do
...
...
spec/features/gitlab_flavored_markdown_spec.rb
View file @
f5dec306
require
'spec_helper'
require
'spec_helper'
describe
"Gitlab Flavored Markdown"
do
describe
"Gitlab Flavored Markdown"
do
let
(
:project
)
{
create
(
:project
)
}
let
(
:project
)
{
create
(
:project
_with_code
)
}
let
(
:issue
)
{
create
(
:issue
,
project:
project
)
}
let
(
:issue
)
{
create
(
:issue
,
project:
project
)
}
let
(
:merge_request
)
{
create
(
:merge_request
,
project:
project
)
}
let
(
:merge_request
)
{
create
(
:merge_request
,
project:
project
)
}
let
(
:fred
)
do
let
(
:fred
)
do
...
...
spec/helpers/gitlab_markdown_helper_spec.rb
View file @
f5dec306
...
@@ -7,7 +7,7 @@ describe GitlabMarkdownHelper do
...
@@ -7,7 +7,7 @@ describe GitlabMarkdownHelper do
let!
(
:project
)
{
create
(
:project
)
}
let!
(
:project
)
{
create
(
:project
)
}
let
(
:user
)
{
create
(
:user
,
username:
'gfm'
)
}
let
(
:user
)
{
create
(
:user
,
username:
'gfm'
)
}
let
(
:commit
)
{
project
.
repository
.
commit
)
}
let
(
:commit
)
{
project
.
repository
.
commit
}
let
(
:issue
)
{
create
(
:issue
,
project:
project
)
}
let
(
:issue
)
{
create
(
:issue
,
project:
project
)
}
let
(
:merge_request
)
{
create
(
:merge_request
,
project:
project
)
}
let
(
:merge_request
)
{
create
(
:merge_request
,
project:
project
)
}
let
(
:snippet
)
{
create
(
:snippet
,
project:
project
)
}
let
(
:snippet
)
{
create
(
:snippet
,
project:
project
)
}
...
...
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