diff options
author | Joshua Peek <josh@joshpeek.com> | 2009-12-09 18:57:16 -0600 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2009-12-09 18:57:16 -0600 |
commit | 0fec53f243079a60df817cab55100a136fafc1c9 (patch) | |
tree | 809d89208b0717e71eb8201b1e135df76082a412 /railties/test/generators/resource_generator_test.rb | |
parent | f9d570bdd80010825c21eb32204471ba525915fa (diff) | |
download | rails-0fec53f243079a60df817cab55100a136fafc1c9.tar.gz rails-0fec53f243079a60df817cab55100a136fafc1c9.tar.bz2 rails-0fec53f243079a60df817cab55100a136fafc1c9.zip |
Scaffolding generates new routing dsl examples
Diffstat (limited to 'railties/test/generators/resource_generator_test.rb')
-rw-r--r-- | railties/test/generators/resource_generator_test.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/railties/test/generators/resource_generator_test.rb b/railties/test/generators/resource_generator_test.rb index 886af01b22..dff3908ea1 100644 --- a/railties/test/generators/resource_generator_test.rb +++ b/railties/test/generators/resource_generator_test.rb @@ -62,7 +62,7 @@ class ResourceGeneratorTest < GeneratorsTestCase run_generator assert_file "config/routes.rb" do |route| - assert_match /map\.resources :accounts$/, route + assert_match /resources :accounts$/, route end end @@ -70,7 +70,7 @@ class ResourceGeneratorTest < GeneratorsTestCase run_generator ["account", "--singleton"] assert_file "config/routes.rb" do |route| - assert_match /map\.resource :account$/, route + assert_match /resource :account$/, route end end @@ -93,7 +93,7 @@ class ResourceGeneratorTest < GeneratorsTestCase run_generator ["account"], :behavior => :revoke assert_file "config/routes.rb" do |route| - assert_no_match /map\.resources :accounts$/, route + assert_no_match /resources :accounts$/, route end end |