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
759492fb
Commit
759492fb
authored
Mar 11, 2016
by
Valery Sizov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ES: added spec
parent
1b2d12e7
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
spec/factories/notes.rb
spec/factories/notes.rb
+1
-0
spec/lib/elastic/note_spec.rb
spec/lib/elastic/note_spec.rb
+7
-0
No files found.
spec/factories/notes.rb
View file @
759492fb
...
...
@@ -71,6 +71,7 @@ FactoryGirl.define do
trait
:award
do
is_award
true
note
Emoji
.
emojis_names
.
sample
end
trait
:downvote
do
...
...
spec/lib/elastic/note_spec.rb
View file @
759492fb
...
...
@@ -41,4 +41,11 @@ describe "Note", elastic: true do
expect
(
note
.
as_indexed_json
).
to
eq
(
expected_hash
)
end
it
"does not create ElasticIndexerWorker job for award or system messages"
do
project
=
create
:empty_project
expect
(
ElasticIndexerWorker
).
to_not
receive
(
:perform_async
)
create
:note
,
:system
,
project:
project
create
:note
,
:award
,
project:
project
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