1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Fix scaffold generator test for resource routes

This commit is contained in:
Santiago Pastorino 2015-05-14 14:47:53 -03:00
parent 846f35203d
commit dc4c68aaaa

View file

@ -99,7 +99,7 @@ class ScaffoldGeneratorTest < Rails::Generators::TestCase
# Route
assert_file "config/routes.rb" do |route|
assert_match(/resources :product_lines, except: \[:new, :edit\]$/, route)
assert_match(/resources :product_lines$/, route)
end
# Controller