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
e0ac704a
Commit
e0ac704a
authored
Mar 13, 2020
by
John Hope
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove database hits from Issue#moved? tests
parent
06d8df4e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
9 deletions
+6
-9
spec/models/issue_spec.rb
spec/models/issue_spec.rb
+6
-9
No files found.
spec/models/issue_spec.rb
View file @
e0ac704a
...
...
@@ -313,19 +313,16 @@ describe Issue do
end
describe
'#moved?'
do
let
(
:issue
)
{
create
(
:issue
)
}
subject
{
issue
.
moved?
}
context
'when issue has not been moved'
do
subject
{
build_stubbed
(
:issue
)
}
context
'issue not moved'
do
it
{
is_expected
.
to
eq
false
}
it
{
is_expected
.
not_to
be_moved
}
end
context
'issue already moved'
do
let
(
:moved_to_issue
)
{
create
(
:issue
)
}
let
(
:issue
)
{
create
(
:issue
,
moved_to:
moved_to_issue
)
}
context
'when issue has already been moved'
do
subject
{
build_stubbed
(
:issue
,
moved_to:
build_stubbed
(
:issue
))
}
it
{
is_expected
.
to
eq
true
}
it
{
is_expected
.
to
be_moved
}
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