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
b3a1d7b3
Commit
b3a1d7b3
authored
Oct 07, 2019
by
allison.browne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use described_class and not_to to fix lint errors
parent
5f02c994
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
spec/models/zoom_meeting_spec.rb
spec/models/zoom_meeting_spec.rb
+3
-3
No files found.
spec/models/zoom_meeting_spec.rb
View file @
b3a1d7b3
...
...
@@ -23,16 +23,16 @@ describe ZoomMeeting do
describe
'.added_to_issue'
do
it
'gets only added meetings'
do
meetings_added
=
ZoomMeeting
.
added_to_issue
.
pluck
(
:id
)
meetings_added
=
described_class
.
added_to_issue
.
pluck
(
:id
)
expect
(
meetings_added
).
to
include
(
added_meeting
.
id
)
expect
(
meetings_added
).
not_to
include
(
removed_meeting
.
id
)
end
end
describe
'.removed_from_issue'
do
it
'gets only removed meetings'
do
meetings_removed
=
ZoomMeeting
.
removed_from_issue
.
pluck
(
:id
)
meetings_removed
=
described_class
.
removed_from_issue
.
pluck
(
:id
)
expect
(
meetings_removed
).
to
include
(
removed_meeting
.
id
)
expect
(
meetings_removed
).
to_not
include
(
added_meeting
.
id
)
expect
(
meetings_removed
).
not_to
include
(
added_meeting
.
id
)
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