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
34653c1e
Commit
34653c1e
authored
Jul 15, 2016
by
Douwe Maan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update tests
parent
c5555c8a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
spec/models/legacy_diff_note_spec.rb
spec/models/legacy_diff_note_spec.rb
+4
-4
No files found.
spec/models/legacy_diff_note_spec.rb
View file @
34653c1e
...
...
@@ -16,10 +16,10 @@ describe LegacyDiffNote, models: true do
end
describe
'#active?'
do
it
'is always true when the note has no associated diff'
do
it
'is always true when the note has no associated diff
line
'
do
note
=
build
(
:legacy_diff_note_on_merge_request
)
expect
(
note
).
to
receive
(
:diff
).
and_return
(
nil
)
expect
(
note
).
to
receive
(
:diff
_line
).
and_return
(
nil
)
expect
(
note
).
to
be_active
end
...
...
@@ -27,7 +27,7 @@ describe LegacyDiffNote, models: true do
it
'is never true when the note has no noteable associated'
do
note
=
build
(
:legacy_diff_note_on_merge_request
)
expect
(
note
).
to
receive
(
:diff
).
and_return
(
double
)
expect
(
note
).
to
receive
(
:diff
_line
).
and_return
(
double
)
expect
(
note
).
to
receive
(
:noteable
).
and_return
(
nil
)
expect
(
note
).
not_to
be_active
...
...
@@ -47,7 +47,7 @@ describe LegacyDiffNote, models: true do
merge
=
build_stubbed
(
:merge_request
,
:simple
)
note
=
build
(
:legacy_diff_note_on_merge_request
,
noteable:
merge
)
allow
(
note
).
to
receive
(
:diff
).
and_return
(
double
)
allow
(
note
).
to
receive
(
:diff
_line
).
and_return
(
double
)
expect
(
note
).
to
receive
(
:find_noteable_diff
).
and_return
(
nil
)
expect
(
note
).
not_to
be_active
...
...
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