test/integration/topic_votes_test.rb
# Helpers only for this topic votes tests.
Helpers only for this topic votes tests.
Helpers only for this topic votes tests .
def assert_no_vote_links_for(topic)
    get topic_path(topic)
    assert_select 'a[href=?]',
                  topic_votes_path(resource_id: topic.id, value: 1), count: 1
    assert_select 'a[href=?]',
                  topic_votes_path(resource_id: topic.id, value: -1), count: 1
  end
def assert_no_vote_links_for ( topic ) get topic_path ( topic ) assert_select 'a[href=?]' , topic_votes_path ( resource_id : topic . id , value : 1 ) , count : 1 assert_select 'a[href=?]' , topic_votes_path ( resource_id : topic . id , value : - 1 ) , count : 1 end
Helpers only for this topic votes tests.
Helpers only for this topic votes tests .
topic
<not_specific>