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
Léo-Paul Géneau
gitlab-ce
Commits
ededfd2d
Commit
ededfd2d
authored
Feb 19, 2014
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix tests
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
ee750298
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
10 deletions
+6
-10
spec/features/issues_spec.rb
spec/features/issues_spec.rb
+6
-10
No files found.
spec/features/issues_spec.rb
View file @
ededfd2d
...
@@ -186,7 +186,7 @@ describe "Issues" do
...
@@ -186,7 +186,7 @@ describe "Issues" do
find
(
'.edit-issue.inline-update #issue_assignee_id'
).
set
project
.
team
.
members
.
first
.
id
find
(
'.edit-issue.inline-update #issue_assignee_id'
).
set
project
.
team
.
members
.
first
.
id
click_button
'Update Issue'
click_button
'Update Issue'
page
.
should
have_content
"
currently assigned to
"
page
.
should
have_content
"
Assignee:
"
page
.
has_select?
(
'issue_assignee_id'
,
:selected
=>
project
.
team
.
members
.
first
.
name
)
page
.
has_select?
(
'issue_assignee_id'
,
:selected
=>
project
.
team
.
members
.
first
.
name
)
end
end
end
end
...
@@ -206,11 +206,9 @@ describe "Issues" do
...
@@ -206,11 +206,9 @@ describe "Issues" do
login_with
guest
login_with
guest
visit
project_issue_path
(
project
,
issue
)
visit
project_issue_path
(
project
,
issue
)
page
.
should
have_content
"currently assigned to
#{
issue
.
assignee
.
name
}
"
page
.
should
have_content
issue
.
assignee
.
name
end
end
end
end
end
end
describe
'update milestone from issue#show'
do
describe
'update milestone from issue#show'
do
...
@@ -225,17 +223,16 @@ describe "Issues" do
...
@@ -225,17 +223,16 @@ describe "Issues" do
find
(
'.edit-issue.inline-update'
).
select
(
milestone
.
title
,
from:
'issue_milestone_id'
)
find
(
'.edit-issue.inline-update'
).
select
(
milestone
.
title
,
from:
'issue_milestone_id'
)
click_button
'Update Issue'
click_button
'Update Issue'
page
.
should
have_content
"
Attached to m
ilestone"
page
.
should
have_content
"
M
ilestone"
page
.
has_select?
(
'issue_assignee_id'
,
:selected
=>
milestone
.
title
)
page
.
has_select?
(
'issue_assignee_id'
,
:selected
=>
milestone
.
title
)
end
end
end
end
context
'by unauthorized user'
do
context
'by unauthorized user'
do
let
(
:guest
)
{
create
(
:user
)
}
let
(
:guest
)
{
create
(
:user
)
}
before
:each
do
before
:each
do
project
.
team
<<
[
[
guest
]
,
:guest
]
project
.
team
<<
[
guest
,
:guest
]
issue
.
milestone
=
milestone
issue
.
milestone
=
milestone
issue
.
save
issue
.
save
end
end
...
@@ -245,8 +242,7 @@ describe "Issues" do
...
@@ -245,8 +242,7 @@ describe "Issues" do
login_with
guest
login_with
guest
visit
project_issue_path
(
project
,
issue
)
visit
project_issue_path
(
project
,
issue
)
page
.
should
have_content
milestone
.
title
page
.
should
have_content
"Attached to milestone
#{
milestone
.
title
}
"
end
end
end
end
end
end
...
@@ -258,4 +254,4 @@ describe "Issues" do
...
@@ -258,4 +254,4 @@ describe "Issues" do
def
last_issue
def
last_issue
all
(
"ul.issues-list li"
).
last
.
text
all
(
"ul.issues-list li"
).
last
.
text
end
end
end
end
\ No newline at end of file
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