Sha256: 6da07ebd908b8e7438fe8deb72aa56a8297195a493c7f090e022a32554ae1bf3
Contents?: true
Size: 338 Bytes
Versions: 4
Compression:
Stored size: 338 Bytes
Contents
require 'test_helper' class RouteTest < 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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
slugs-4.0.0.3 | test/route_test.rb |
slugs-4.0.0.2 | test/route_test.rb |
slugs-4.0.0.1 | test/route_test.rb |
slugs-4.0.0.0 | test/route_test.rb |