Sha256: 20ecde973b172fc855e711c1eb5f5a9c510539f217fa42f8c5e512b68c079ac9
Contents?: true
Size: 684 Bytes
Versions: 6
Compression:
Stored size: 684 Bytes
Contents
require "test_helper" class ColumnOrderingTest < ActionDispatch::IntegrationTest def test_default_order_links visit articles_path link = find("#table th.column-created_at a") assert_equal "/articles?order=created_at_desc", link[:href] end def test_order_flipped visit articles_path link_matcher = "#table th.column-created_at a" find(link_matcher).click link = find(link_matcher) assert_equal "/articles?order=created_at_asc", link[:href] end def test_order_links_when_order_empty visit articles_path(order: "") link = find("#table th.column-created_at a") assert_equal "/articles?order=created_at_desc", link[:href] end end
Version data entries
6 entries across 6 versions & 1 rubygems