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
018e71a8
Commit
018e71a8
authored
Jun 26, 2012
by
Rocky Duan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
don't really need depth
parent
5122a9a6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
2 deletions
+0
-2
spec/app_spec.rb
+0
-2
No files found.
spec/app_spec.rb
View file @
018e71a8
...
@@ -91,13 +91,11 @@ describe "app" do
...
@@ -91,13 +91,11 @@ describe "app" do
c
[
"created_at"
].
should_not
be_nil
c
[
"created_at"
].
should_not
be_nil
c
[
"updated_at"
].
should_not
be_nil
c
[
"updated_at"
].
should_not
be_nil
c
[
"children"
].
length
.
should
==
2
c
[
"children"
].
length
.
should
==
2
c
[
"depth"
].
should
==
1
children
=
c
[
"children"
].
reject
{
|
comment
|
comment
[
"title"
]
!=
"comment title 0"
}.
first
children
=
c
[
"children"
].
reject
{
|
comment
|
comment
[
"title"
]
!=
"comment title 0"
}.
first
children
.
should_not
be_nil
children
.
should_not
be_nil
children
[
"id"
].
should
==
sub_comment
[
0
].
id
children
[
"id"
].
should
==
sub_comment
[
0
].
id
children
[
"created_at"
].
should_not
be_nil
children
[
"created_at"
].
should_not
be_nil
children
[
"updated_at"
].
should_not
be_nil
children
[
"updated_at"
].
should_not
be_nil
children
[
"depth"
].
should
==
2
end
end
end
end
describe
"GET on /api/v1/comments/:comment_id"
do
describe
"GET on /api/v1/comments/:comment_id"
do
...
...
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