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:
parent
9b4aa9bcd9
commit
4866ce45d0
1 changed files with 2 additions and 2 deletions
|
@ -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|
|
||||
|
|
Loading…
Reference in a new issue