@@ -11,13 +11,13 @@ class CommentsControllerTest < ActionController::TestCase
1111 question = posts ( :question_one )
1212
1313 # Assert user follows post
14- assert_equal 1 , ThreadFollower . where ( [ 'post_id = ? AND user_id = ?' , question , user ] ) . count
14+ assert_equal 1 , NewThreadFollower . where ( [ 'post_id = ? AND user_id = ?' , question , user ] ) . count
1515
1616 try_post_unfollow ( question )
1717 assert_response ( :found )
1818
1919 # Assert user does not follow post
20- assert_equal 0 , ThreadFollower . where ( [ 'post_id = ? AND user_id = ?' , question , user ] ) . count
20+ assert_equal 0 , NewThreadFollower . where ( [ 'post_id = ? AND user_id = ?' , question , user ] ) . count
2121 end
2222
2323 test 'non-follower can follow post' do
@@ -26,13 +26,13 @@ class CommentsControllerTest < ActionController::TestCase
2626 question = posts ( :question_one )
2727
2828 # Assert user does not follow post
29- assert_equal 0 , ThreadFollower . where ( [ 'post_id = ? AND user_id = ?' , question , user ] ) . count
29+ assert_equal 0 , NewThreadFollower . where ( [ 'post_id = ? AND user_id = ?' , question , user ] ) . count
3030
3131 try_post_follow ( question )
3232 assert_response ( :found )
3333
3434 # Assert user follows post
35- assert_equal 1 , ThreadFollower . where ( [ 'post_id = ? AND user_id = ?' , question , user ] ) . count
35+ assert_equal 1 , NewThreadFollower . where ( [ 'post_id = ? AND user_id = ?' , question , user ] ) . count
3636 end
3737
3838 test 'follower cannot duplicate the following of a post' do
@@ -41,12 +41,12 @@ class CommentsControllerTest < ActionController::TestCase
4141 question = posts ( :question_one )
4242
4343 # Assert user follows post
44- assert_equal 1 , ThreadFollower . where ( [ 'post_id = ? AND user_id = ?' , question , user ] ) . count
44+ assert_equal 1 , NewThreadFollower . where ( [ 'post_id = ? AND user_id = ?' , question , user ] ) . count
4545
4646 try_post_follow ( question )
4747 assert_response ( :found )
4848
4949 # Assert user still only follows post once
50- assert_equal 1 , ThreadFollower . where ( [ 'post_id = ? AND user_id = ?' , question , user ] ) . count
50+ assert_equal 1 , NewThreadFollower . where ( [ 'post_id = ? AND user_id = ?' , question , user ] ) . count
5151 end
5252end
0 commit comments