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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
d2b026f0
Commit
d2b026f0
authored
Jul 27, 2016
by
Lin Jen-Shin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test both for having existing issues or not
parent
7d3c98e7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
spec/features/issues_spec.rb
spec/features/issues_spec.rb
+12
-2
No files found.
spec/features/issues_spec.rb
View file @
d2b026f0
...
...
@@ -525,7 +525,7 @@ describe 'Issues', feature: true do
end
describe
'new issue by email'
do
context
'click the button to show modal for new issue email'
,
js:
true
do
shared_examples
'show the email in the modal'
do
before
do
stub_incoming_email_setting
(
enabled:
true
,
address:
"p+%{key}@gl.ab"
)
...
...
@@ -533,7 +533,7 @@ describe 'Issues', feature: true do
click_button
(
'Email a new issue'
)
end
it
'
shows the email in the moda
l'
do
it
'
click the button to show modal for the new emai
l'
do
page
.
within
'#issue-email-modal'
do
email
=
project
.
new_issue_address
(
@user
)
...
...
@@ -541,6 +541,16 @@ describe 'Issues', feature: true do
end
end
end
context
'with existing issues'
do
let!
(
:issue
)
{
create
(
:issue
,
project:
project
,
author:
@user
)
}
it_behaves_like
'show the email in the modal'
end
context
'without existing issues'
do
it_behaves_like
'show the email in the modal'
end
end
describe
'due date'
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