Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cs_comments_service
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
cs_comments_service
Commits
e7c70993
Commit
e7c70993
authored
Nov 30, 2015
by
wajeeha-khalid
Committed by
Saqib
Aug 05, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MA-1742; return read status on GET thread for user_id provided
parent
d54a58f2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
spec/api/comment_thread_spec.rb
+12
-0
No files found.
spec/api/comment_thread_spec.rb
View file @
e7c70993
...
...
@@ -564,6 +564,18 @@ describe "app" do
end
it
"marks thread as read and confirms its value on returned response"
do
user
=
create_test_user
(
123
)
thread
=
CommentThread
.
first
user
.
mark_as_read
(
thread
)
get
"/api/v1/threads/
#{
thread
.
id
}
"
,
user_id:
user
.
id
last_response
.
should
be_ok
json_response
=
parse
(
last_response
.
body
)
changed_thread
=
CommentThread
.
find
(
thread
.
id
)
check_thread_result_json
(
user
,
changed_thread
,
json_response
)
json_response
[
"read"
].
should
==
true
end
def
test_unicode_data
(
text
)
thread
=
create
(
:comment_thread
,
body:
text
)
create
(
:comment
,
comment_thread:
thread
,
body:
text
)
...
...
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