Permalink
Browse files

Fix broken scaffolding tests [#1889 state:committed]

Signed-off-by: David Heinemeier Hansson <david@loudthinking.com>
  • Loading branch information...
ffmike authored and dhh committed Feb 5, 2009
1 parent 9b4aa9b commit 4866ce45d0ab66a1b237c55e21be730de282b059
Showing with 2 additions and 2 deletions.
  1. +2 −2 railties/test/generators/rails_scaffold_generator_test.rb
@@ -19,7 +19,7 @@ def test_scaffold_generates_resources
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 @@ def test_scaffold_generates_resources_with_attributes
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|

0 comments on commit 4866ce4

Please sign in to comment.