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
ce2e37d4
Commit
ce2e37d4
authored
Apr 01, 2016
by
Phil Hughes
Committed by
Jacob Schatz
Apr 16, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed tests
parent
6c949b2b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
7 deletions
+5
-7
features/steps/shared/issuable.rb
features/steps/shared/issuable.rb
+1
-1
spec/features/issues/move_spec.rb
spec/features/issues/move_spec.rb
+4
-6
No files found.
features/steps/shared/issuable.rb
View file @
ce2e37d4
...
...
@@ -2,7 +2,7 @@ module SharedIssuable
include
Spinach
::
DSL
def
edit_issuable
find
(
:css
,
'.issuable-edit'
).
click
find
(
'.issuable-edit'
,
visible:
true
).
click
end
step
'project "Community" has "Community issue" open issue'
do
...
...
spec/features/issues/move_spec.rb
View file @
ce2e37d4
...
...
@@ -42,12 +42,10 @@ feature 'issue move to another project' do
expect
(
current_url
).
to
include
project_path
(
new_project
)
page
.
within
(
'.issue'
)
do
expect
(
page
).
to
have_content
(
"Text with
#{
cross_reference
}
!1"
)
expect
(
page
).
to
have_content
(
"Moved from
#{
cross_reference
}
#1"
)
expect
(
page
).
to
have_content
(
issue
.
title
)
end
end
context
'projects user does not have permission to move issue to exist'
do
let!
(
:private_project
)
{
create
(
:project
,
:private
)
}
...
...
@@ -74,7 +72,7 @@ feature 'issue move to another project' do
def
edit_issue
(
issue
)
visit
issue_path
(
issue
)
page
.
within
(
'.issuable-
header'
)
{
click_link
'Edit'
}
page
.
within
(
'.issuable-
actions'
)
{
find
(
'.issuable-edit'
).
click
}
end
def
issue_path
(
issue
)
...
...
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