Sha256: d128c3b82f696fbc18a685909f622c021db1dcf95a3c032799fa9942970fce38
Contents?: true
Size: 339 Bytes
Versions: 2
Compression:
Stored size: 339 Bytes
Contents
require 'test_helper' class RoutesTest < ActionDispatch::IntegrationTest setup do @shop = Shop.create(name: 'Guitar Shop') end test 'generator' do assert_equal '/shops/guitar-shop?page=3', shop_path(@shop, page: 3) end test 'optimized url helper' do assert_equal '/shops/guitar-shop', shop_path(@shop) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
slugs-2.0.1 | test/routes_test.rb |
slugs-2.0.0 | test/routes_test.rb |