test/integration/topics_index_aka_category_show_test.rb
# No matter what this layout should apply.
No matter what this layout should apply.
No matter what this layout should apply .
def assert_basic_layout
    get category_path(@category)
    assert_template 'topics/index'
    assert_select 'ul.pagination', count: 1
    assert_flash_notices
  end
def assert_basic_layout get category_path ( @category ) assert_template 'topics/index' assert_select 'ul.pagination' , count : 1 assert_flash_notices end
No matter what this layout should apply.
No matter what this layout should apply .
# Topics index is actually category show. # Assert there are two will_paginate controls on the page. # Assert there is no flash messages.