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
b51252e6
Commit
b51252e6
authored
Jan 30, 2012
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bootstrap: test fixes
parent
fca1ffb8
Changes
10
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
14 additions
and
24 deletions
+14
-24
app/views/issues/index.html.haml
app/views/issues/index.html.haml
+2
-1
app/views/team_members/_show.html.haml
app/views/team_members/_show.html.haml
+1
-1
spec/requests/commits_spec.rb
spec/requests/commits_spec.rb
+1
-1
spec/requests/dashboard_issues_spec.rb
spec/requests/dashboard_issues_spec.rb
+0
-2
spec/requests/dashboard_spec.rb
spec/requests/dashboard_spec.rb
+2
-1
spec/requests/keys_spec.rb
spec/requests/keys_spec.rb
+3
-3
spec/requests/merge_requests_spec.rb
spec/requests/merge_requests_spec.rb
+1
-3
spec/requests/repositories_spec.rb
spec/requests/repositories_spec.rb
+0
-5
spec/requests/team_members_spec.rb
spec/requests/team_members_spec.rb
+3
-5
spec/support/shared_examples.rb
spec/support/shared_examples.rb
+1
-2
No files found.
app/views/issues/index.html.haml
View file @
b51252e6
...
@@ -29,6 +29,7 @@
...
@@ -29,6 +29,7 @@
.span2.right
.span2.right
=
form_tag
search_project_issues_path
(
@project
),
:method
=>
:get
,
:remote
=>
true
,
:id
=>
"issue_search_form"
,
:class
=>
:right
do
=
form_tag
search_project_issues_path
(
@project
),
:method
=>
:get
,
:remote
=>
true
,
:id
=>
"issue_search_form"
,
:class
=>
:right
do
=
hidden_field_tag
:project_id
,
@project
.
id
,
{
:id
=>
'project_id'
}
=
hidden_field_tag
:project_id
,
@project
.
id
,
{
:id
=>
'project_id'
}
=
hidden_field_tag
:status
,
params
[
:f
]
=
search_field_tag
:issue_search
,
nil
,
{
:placeholder
=>
'Search'
,
:class
=>
'issue_search'
}
=
search_field_tag
:issue_search
,
nil
,
{
:placeholder
=>
'Search'
,
:class
=>
'issue_search'
}
%hr
%hr
...
@@ -41,7 +42,7 @@
...
@@ -41,7 +42,7 @@
$
(
'
.issue_search
'
).
keyup
(
function
()
{
$
(
'
.issue_search
'
).
keyup
(
function
()
{
var
terms
=
$
(
this
).
val
();
var
terms
=
$
(
this
).
val
();
var
project_id
=
$
(
'
#project_id
'
).
val
();
var
project_id
=
$
(
'
#project_id
'
).
val
();
var
status
=
$
(
'
.status:checked
'
).
val
();
var
status
=
$
(
'
#status
'
).
val
();
if
(
terms
!=
last_terms
)
{
if
(
terms
!=
last_terms
)
{
last_terms
=
terms
;
last_terms
=
terms
;
...
...
app/views/team_members/_show.html.haml
View file @
b51252e6
-
user
=
member
.
user
-
user
=
member
.
user
-
allow_admin
=
can?
current_user
,
:admin_project
,
@project
-
allow_admin
=
can?
current_user
,
:admin_project
,
@project
%li
{
:id
=>
dom_id
(
member
)}
%li
{
:id
=>
dom_id
(
member
)}
=
link_to
project_team_member_path
(
@project
,
member
)
do
=
link_to
project_team_member_path
(
@project
,
member
)
,
:title
=>
user
.
name
do
=
image_tag
gravatar_icon
(
user
.
email
,
90
),
:class
=>
"thumbnail"
=
image_tag
gravatar_icon
(
user
.
email
,
90
),
:class
=>
"thumbnail"
.row
.row
.span6
.span6
...
...
spec/requests/commits_spec.rb
View file @
b51252e6
...
@@ -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
.
author
)
page
.
should
have_content
(
commit
.
message
)
page
.
should
have_content
(
commit
.
message
)
page
.
should
have_content
(
commit
.
id
.
to_s
[
0
..
5
])
end
end
it
"should render atom feed"
do
it
"should render atom feed"
do
...
...
spec/requests/dashboard_issues_spec.rb
View file @
b51252e6
...
@@ -34,11 +34,9 @@ describe "User Issues Dashboard" do
...
@@ -34,11 +34,9 @@ describe "User Issues Dashboard" do
it
{
should
have_content
(
@issue1
.
title
[
0
..
10
])
}
it
{
should
have_content
(
@issue1
.
title
[
0
..
10
])
}
it
{
should
have_content
(
@issue1
.
project
.
name
)
}
it
{
should
have_content
(
@issue1
.
project
.
name
)
}
it
{
should
have_content
(
@issue1
.
assignee
.
name
)
}
it
{
should
have_content
(
@issue2
.
title
[
0
..
10
])
}
it
{
should
have_content
(
@issue2
.
title
[
0
..
10
])
}
it
{
should
have_content
(
@issue2
.
project
.
name
)
}
it
{
should
have_content
(
@issue2
.
project
.
name
)
}
it
{
should
have_content
(
@issue2
.
assignee
.
name
)
}
describe
"atom feed"
,
:js
=>
false
do
describe
"atom feed"
,
:js
=>
false
do
it
"should render atom feed via private token"
do
it
"should render atom feed via private token"
do
...
...
spec/requests/dashboard_spec.rb
View file @
b51252e6
require
'spec_helper'
require
'spec_helper'
__END__
# Disabled for now
describe "Dashboard" do
describe "Dashboard" do
before do
before do
@project = Factory :project
@project = Factory :project
...
...
spec/requests/keys_spec.rb
View file @
b51252e6
...
@@ -26,14 +26,14 @@ describe "Issues" do
...
@@ -26,14 +26,14 @@ describe "Issues" do
end
end
end
end
describe
"New key"
,
:js
=>
true
do
describe
"New key"
do
before
do
before
do
visit
keys_path
visit
keys_path
click_link
"Add new"
click_link
"Add new"
end
end
it
"should open new key popup"
do
it
"should open new key popup"
do
page
.
should
have_content
(
"
Add new public
key"
)
page
.
should
have_content
(
"
New
key"
)
end
end
describe
"fill in"
do
describe
"fill in"
do
...
@@ -47,7 +47,7 @@ describe "Issues" do
...
@@ -47,7 +47,7 @@ describe "Issues" do
it
"should add new key to table"
do
it
"should add new key to table"
do
click_button
"Save"
click_button
"Save"
page
.
should_not
have_content
(
"
Add new public
key"
)
page
.
should_not
have_content
(
"
New
key"
)
page
.
should
have_content
"laptop"
page
.
should
have_content
"laptop"
end
end
end
end
...
...
spec/requests/merge_requests_spec.rb
View file @
b51252e6
...
@@ -42,12 +42,10 @@ describe "MergeRequests" do
...
@@ -42,12 +42,10 @@ describe "MergeRequests" do
it
{
should
have_content
(
@merge_request
.
title
[
0
..
10
])
}
it
{
should
have_content
(
@merge_request
.
title
[
0
..
10
])
}
it
"Show page should inform user that merge request closed"
do
it
"Show page should inform user that merge request closed"
do
within
".tabs"
do
page
.
should
have_content
"Reopen"
page
.
should
have_content
"Reopen"
end
end
end
end
end
end
end
describe
"GET /merge_requests/new"
do
describe
"GET /merge_requests/new"
do
before
do
before
do
...
...
spec/requests/repositories_spec.rb
View file @
b51252e6
...
@@ -24,11 +24,6 @@ describe "Repository" do
...
@@ -24,11 +24,6 @@ describe "Repository" do
it
"should have link to last commit for activities tab"
do
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
.
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
==
@project
.
repo
.
branches
.
size
end
end
end
end
...
...
spec/requests/team_members_spec.rb
View file @
b51252e6
...
@@ -10,9 +10,7 @@ describe "TeamMembers" do
...
@@ -10,9 +10,7 @@ describe "TeamMembers" do
describe
"View profile"
do
describe
"View profile"
do
it
"should be available"
do
it
"should be available"
do
visit
(
team_project_path
(
@project
))
visit
(
team_project_path
(
@project
))
within
"#team-table"
do
click_link
(
@user
.
name
)
click_link
(
@user
.
name
)
end
page
.
should
have_content
@user
.
skype
page
.
should
have_content
@user
.
skype
page
.
should_not
have_content
'Twitter'
page
.
should_not
have_content
'Twitter'
end
end
...
@@ -55,8 +53,8 @@ describe "TeamMembers" do
...
@@ -55,8 +53,8 @@ describe "TeamMembers" do
describe
"Cancel membership"
do
describe
"Cancel membership"
do
it
"should cancel membership"
do
it
"should cancel membership"
do
visit
team_project_path
(
@projec
t
)
visit
project_team_member_path
(
@project
,
@project
.
users_projects
.
las
t
)
expect
{
click_link
"
Cancel
"
}.
to
change
{
UsersProject
.
count
}.
by
(
-
1
)
expect
{
click_link
"
Remove from team
"
}.
to
change
{
UsersProject
.
count
}.
by
(
-
1
)
end
end
end
end
end
end
spec/support/shared_examples.rb
View file @
b51252e6
...
@@ -2,8 +2,7 @@ shared_examples_for :project_side_pane do
...
@@ -2,8 +2,7 @@ shared_examples_for :project_side_pane do
subject
{
page
}
subject
{
page
}
it
{
should
have_content
((
@project
||
project
).
name
)
}
it
{
should
have_content
((
@project
||
project
).
name
)
}
it
{
should
have_content
(
"Commits"
)
}
it
{
should
have_content
(
"Commits"
)
}
it
{
should
have_content
(
"Team"
)
}
it
{
should
have_content
(
"Code"
)
}
it
{
should
have_content
(
"Tree"
)
}
end
end
shared_examples_for
:tree_view
do
shared_examples_for
:tree_view
do
...
...
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