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
Jérome Perrin
gitlab-ce
Commits
d8247012
Commit
d8247012
authored
Dec 31, 2011
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
repositories tab specs
parent
0ae9ac15
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
48 additions
and
1 deletion
+48
-1
app/views/repositories/_head.html.haml
app/views/repositories/_head.html.haml
+1
-1
db/schema.rb
db/schema.rb
+12
-0
spec/requests/repositories_spec.rb
spec/requests/repositories_spec.rb
+35
-0
No files found.
app/views/repositories/_head.html.haml
View file @
d8247012
.merge-tabs.repository
=
link_to
project_repository_path
(
@project
),
:class
=>
"tab
#{
'active'
if
current_page?
(
project_repository_path
(
@project
))
}
"
do
=
link_to
project_repository_path
(
@project
),
:class
=>
"
activities-tab
tab
#{
'active'
if
current_page?
(
project_repository_path
(
@project
))
}
"
do
%span
Activities
=
link_to
"#"
,
:class
=>
"tab"
do
...
...
db/schema.rb
View file @
d8247012
...
...
@@ -13,6 +13,18 @@
ActiveRecord
::
Schema
.
define
(
:version
=>
20111220190817
)
do
create_table
"features"
,
:force
=>
true
do
|
t
|
t
.
string
"name"
t
.
string
"branch_name"
t
.
integer
"assignee_id"
t
.
integer
"author_id"
t
.
integer
"project_id"
t
.
datetime
"created_at"
t
.
datetime
"updated_at"
t
.
string
"version"
t
.
integer
"status"
,
:default
=>
0
,
:null
=>
false
end
create_table
"issues"
,
:force
=>
true
do
|
t
|
t
.
string
"title"
t
.
integer
"assignee_id"
...
...
spec/requests/repositories_spec.rb
0 → 100644
View file @
d8247012
require
'spec_helper'
describe
"Repository"
do
before
do
@user
=
Factory
:user
@project
=
Factory
:project
@project
.
add_access
(
@user
,
:read
,
:write
)
login_with
@user
end
describe
"GET /:project_name/repository"
do
before
do
visit
project_repository_path
(
@project
)
end
it
"should be on projects page"
do
current_path
.
should
==
project_repository_path
(
@project
)
end
it
"should have link to repo activities"
do
page
.
should
have_content
(
"Activities"
)
end
it
"should have link to last commit for activities tab"
do
page
.
should
have_content
(
@project
.
commit
.
safe_message
[
0
..
20
])
page
.
should
have_content
(
@project
.
commit
.
author_name
)
end
it
"should show commits list"
do
page
.
all
(
:css
,
".project-update"
).
size
.
should
==
20
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