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

Fix broken scaffolding tests [#1889 state:committed]

Signed-off-by: David Heinemeier Hansson <david@loudthinking.com>
This commit is contained in:
Mike Gunderloy 2009-02-05 14:00:57 -06:00 committed by David Heinemeier Hansson
parent 9b4aa9bcd9
commit 4866ce45d0

View file

@ -19,7 +19,7 @@ class RailsScaffoldGeneratorTest < GeneratorTestCase
assert_generated_controller_for :products do |f|
assert_has_method f, :index do |name, m|
assert_match /@products = Product\.find\(:all\)/, m, "#{name} should query products table"
assert_match /@products = Product\.all/, m, "#{name} should query products table"
end
assert_has_method f, :show, :edit, :update, :destroy do |name, m|
@ -71,7 +71,7 @@ class RailsScaffoldGeneratorTest < GeneratorTestCase
assert_generated_controller_for :products do |f|
assert_has_method f, :index do |name, m|
assert_match /@products = Product\.find\(:all\)/, m, "#{name} should query products table"
assert_match /@products = Product\.all/, m, "#{name} should query products table"
end
assert_has_method f, :show, :edit, :update, :destroy do |name, m|