diff options
author | Mike Gunderloy <MikeG1@larkfarm.com> | 2009-02-05 14:00:57 -0600 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2009-02-05 21:07:51 +0100 |
commit | 4866ce45d0ab66a1b237c55e21be730de282b059 (patch) | |
tree | 08d095f862323870c8530e623b18168f707590c3 /railties | |
parent | 9b4aa9bcd9cb03f689eed374e870dd5a46e4a661 (diff) | |
download | rails-4866ce45d0ab66a1b237c55e21be730de282b059.tar.gz rails-4866ce45d0ab66a1b237c55e21be730de282b059.tar.bz2 rails-4866ce45d0ab66a1b237c55e21be730de282b059.zip |
Fix broken scaffolding tests [#1889 state:committed]
Signed-off-by: David Heinemeier Hansson <david@loudthinking.com>
Diffstat (limited to 'railties')
-rw-r--r-- | railties/test/generators/rails_scaffold_generator_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/test/generators/rails_scaffold_generator_test.rb b/railties/test/generators/rails_scaffold_generator_test.rb index 0155e463c7..70829a77fd 100644 --- a/railties/test/generators/rails_scaffold_generator_test.rb +++ b/railties/test/generators/rails_scaffold_generator_test.rb @@ -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| |