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
92702772
Commit
92702772
authored
Jul 03, 2017
by
Rémy Coutable
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Eagerly create a milestone that is used in a feature spec
Signed-off-by:
Rémy Coutable
<
remy@rymai.me
>
parent
2443ab69
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
spec/features/issues/update_issues_spec.rb
spec/features/issues/update_issues_spec.rb
+6
-6
No files found.
spec/features/issues/update_issues_spec.rb
View file @
92702772
require
'rails_helper'
require
'rails_helper'
feature
'Multiple issue updating from issues#index'
,
feature:
true
do
feature
'Multiple issue updating from issues#index'
,
:js
do
let!
(
:project
)
{
create
(
:project
)
}
let!
(
:project
)
{
create
(
:project
)
}
let!
(
:issue
)
{
create
(
:issue
,
project:
project
)
}
let!
(
:issue
)
{
create
(
:issue
,
project:
project
)
}
let!
(
:user
)
{
create
(
:user
)}
let!
(
:user
)
{
create
(
:user
)}
before
do
before
do
project
.
team
<<
[
user
,
:master
]
project
.
team
<<
[
user
,
:master
]
gitlab_
sign_in
(
user
)
sign_in
(
user
)
end
end
context
'status'
,
js:
true
do
context
'status'
do
it
'sets to closed'
do
it
'sets to closed'
do
visit
namespace_project_issues_path
(
project
.
namespace
,
project
)
visit
namespace_project_issues_path
(
project
.
namespace
,
project
)
...
@@ -37,7 +37,7 @@ feature 'Multiple issue updating from issues#index', feature: true do
...
@@ -37,7 +37,7 @@ feature 'Multiple issue updating from issues#index', feature: true do
end
end
end
end
context
'assignee'
,
js:
true
do
context
'assignee'
do
it
'updates to current user'
do
it
'updates to current user'
do
visit
namespace_project_issues_path
(
project
.
namespace
,
project
)
visit
namespace_project_issues_path
(
project
.
namespace
,
project
)
...
@@ -67,8 +67,8 @@ feature 'Multiple issue updating from issues#index', feature: true do
...
@@ -67,8 +67,8 @@ feature 'Multiple issue updating from issues#index', feature: true do
end
end
end
end
context
'milestone'
,
js:
true
do
context
'milestone'
do
let
(
:milestone
)
{
create
(
:milestone
,
project:
project
)
}
let
!
(
:milestone
)
{
create
(
:milestone
,
project:
project
)
}
it
'updates milestone'
do
it
'updates milestone'
do
visit
namespace_project_issues_path
(
project
.
namespace
,
project
)
visit
namespace_project_issues_path
(
project
.
namespace
,
project
)
...
...
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