Skip to content

Commit

Permalink
Consolidate Comment Tests for Wikis, Questions, and Notes (publiclab#…
Browse files Browse the repository at this point in the history
…8860)

* change :question4 to :comment_question

* consolidate all comment tests

* add helper function to retrieve fixture names

* change :question4 to :comment_question

* consolidate all comment tests

* add helper function to retrieve fixture names
  • Loading branch information
noi5e authored and lagunasmel committed Mar 2, 2021
1 parent 310c0ba commit af4f782
Show file tree
Hide file tree
Showing 7 changed files with 253 additions and 339 deletions.
2 changes: 1 addition & 1 deletion test/fixtures/node_tags.yml
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ organizers-chapter:

# this tags node 37 as a question
# ultimately, this is for testing comments on that node.
question4:
comment_question:
tid: 35
uid: 2
nid: 37
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/nodes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ sun_question:
cached_likes: 0
slug: "note-tagged-with-question-sun"

question4: # for testing comments on questions
comment_question: # for testing comments on questions
nid: 37
uid: 2
title: "Can I post comments here"
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/revisions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ sun_question:
timestamp: <%= DateTime.new(2020,2,12).to_i %>
status: 1

question4: # for testing comments on questions
comment_question: # for testing comments on questions
nid: 37
uid: 2
title: "Can I post comments here"
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/tags.yml
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ sun_question:

# this tags node 37 as a question
# ultimately, this is for testing comments on that node.
question4:
comment_question:
tid: 35
name: question:general

Expand Down
Loading

0 comments on commit af4f782

Please sign in to comment.