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
Tatuya Kamada
gitlab-ce
Commits
f9877c52
Commit
f9877c52
authored
Jul 22, 2012
by
Riyad Preukschas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update specs
parent
34cea1cb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
spec/requests/commits_spec.rb
spec/requests/commits_spec.rb
+5
-5
No files found.
spec/requests/commits_spec.rb
View file @
f9877c52
...
@@ -2,7 +2,7 @@ require 'spec_helper'
...
@@ -2,7 +2,7 @@ require 'spec_helper'
describe
"Commits"
do
describe
"Commits"
do
let
(
:project
)
{
Factory
:project
}
let
(
:project
)
{
Factory
:project
}
let!
(
:commit
)
{
project
.
commit
}
let!
(
:commit
)
{
CommitDecorator
.
decorate
(
project
.
commit
)
}
before
do
before
do
login_as
:user
login_as
:user
project
.
add_access
(
@user
,
:read
)
project
.
add_access
(
@user
,
:read
)
...
@@ -22,8 +22,8 @@ describe "Commits" do
...
@@ -22,8 +22,8 @@ describe "Commits" do
end
end
it
"should list commits"
do
it
"should list commits"
do
page
.
should
have_content
(
commit
.
message
)
page
.
should
have_content
(
commit
.
description
)
page
.
should
have_content
(
commit
.
id
.
to_s
[
0
..
5
]
)
page
.
should
have_content
(
commit
.
short_id
)
end
end
it
"should render atom feed"
do
it
"should render atom feed"
do
...
@@ -32,7 +32,7 @@ describe "Commits" do
...
@@ -32,7 +32,7 @@ describe "Commits" do
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
)
page
.
body
.
should
have_selector
(
"entry summary"
,
:text
=>
commit
.
message
)
page
.
body
.
should
have_selector
(
"entry summary"
,
:text
=>
commit
.
description
)
end
end
it
"should render atom feed via private token"
do
it
"should render atom feed via private token"
do
...
@@ -42,7 +42,7 @@ describe "Commits" do
...
@@ -42,7 +42,7 @@ describe "Commits" do
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
)
page
.
body
.
should
have_selector
(
"entry summary"
,
:text
=>
commit
.
message
)
page
.
body
.
should
have_selector
(
"entry summary"
,
:text
=>
commit
.
description
)
end
end
end
end
...
...
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