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
575b3db9
Commit
575b3db9
authored
Jun 16, 2021
by
Rémy Coutable
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a spec that was broken with PG11
Signed-off-by:
Rémy Coutable
<
remy@rymai.me
>
parent
3c3f04d2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
ee/spec/services/iterations/roll_over_issues_service_spec.rb
ee/spec/services/iterations/roll_over_issues_service_spec.rb
+9
-5
No files found.
ee/spec/services/iterations/roll_over_issues_service_spec.rb
View file @
575b3db9
...
...
@@ -9,8 +9,8 @@ RSpec.describe Iterations::RollOverIssuesService do
let_it_be
(
:closed_iteration2
)
{
create
(
:closed_iteration
,
group:
group
)
}
let_it_be
(
:started_iteration
)
{
create
(
:started_iteration
,
group:
group
)
}
let_it_be
(
:upcoming_iteration
)
{
create
(
:upcoming_iteration
,
group:
group
)
}
let_it_be
(
:open_issues
)
{
create_list
(
:issue
,
5
,
:opened
,
iteration:
closed_iteration1
)
}
let_it_be
(
:closed_issues
)
{
create_list
(
:issue
,
5
,
:closed
,
iteration:
closed_iteration1
)
}
let_it_be
(
:open_issues
)
{
[
create
(
:issue
,
:opened
,
iteration:
closed_iteration1
)]
}
let_it_be
(
:closed_issues
)
{
[
create
(
:issue
,
:closed
,
iteration:
closed_iteration1
)]
}
let
(
:from_iteration
)
{
closed_iteration1
}
let
(
:to_iteration
)
{
started_iteration
}
...
...
@@ -80,9 +80,13 @@ RSpec.describe Iterations::RollOverIssuesService do
it
{
is_expected
.
not_to
be_error
}
it
'rolls-over issues to next iteration'
do
expect
{
subject
}.
to
change
{
started_iteration
.
reload
.
issues
}.
from
([]).
to
(
open_issues
)
.
and
(
change
{
closed_iteration1
.
reload
.
issues
}.
from
(
open_issues
+
closed_issues
).
to
(
closed_issues
)
)
.
and
(
change
(
ResourceIterationEvent
,
:count
).
by
(
10
))
expect
(
started_iteration
.
issues
).
to
be_empty
expect
(
closed_iteration1
.
issues
).
to
match_array
(
open_issues
+
closed_issues
)
expect
{
subject
}.
to
change
(
ResourceIterationEvent
,
:count
).
by
(
2
)
expect
(
started_iteration
.
reload
.
issues
).
to
match_array
(
open_issues
)
expect
(
closed_iteration1
.
reload
.
issues
).
to
match_array
(
closed_issues
)
end
end
end
...
...
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