diff options
author | Jorge Bejar <jorge@wyeworks.com> | 2015-05-04 17:04:15 -0300 |
---|---|---|
committer | Santiago Pastorino <santiago@wyeworks.com> | 2015-06-11 16:54:14 -0300 |
commit | 674dab30bc46d63875c533f4cd4daa2b62ad67c5 (patch) | |
tree | 824461061ef9647906b6d2303abe50cea719f3dc /railties/test | |
parent | 099055de66ba400750d4cda7049c047aeb179ab7 (diff) | |
download | rails-674dab30bc46d63875c533f4cd4daa2b62ad67c5.tar.gz rails-674dab30bc46d63875c533f4cd4daa2b62ad67c5.tar.bz2 rails-674dab30bc46d63875c533f4cd4daa2b62ad67c5.zip |
Routes resources avoid :new and :edit endpoints if api_only is enabled
Diffstat (limited to 'railties/test')
-rw-r--r-- | railties/test/generators/resource_generator_test.rb | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/railties/test/generators/resource_generator_test.rb b/railties/test/generators/resource_generator_test.rb index f73169c6fb..581d80d60e 100644 --- a/railties/test/generators/resource_generator_test.rb +++ b/railties/test/generators/resource_generator_test.rb @@ -85,10 +85,4 @@ class ResourceGeneratorTest < Rails::Generators::TestCase assert_no_match(/resources :accounts$/, route) end end - - def test_api_only_does_not_generate_edit_route - run_generator ["Account", "--api"] - - assert_file "config/routes.rb", /resources :accounts, except: \[:new, :edit\]$/ - end end |