jets 1.9.7 → 1.9.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.gitmodules +0 -6
- data/CHANGELOG.md +5 -0
- data/Rakefile +3 -0
- data/jets.gemspec +3 -2
- data/lib/jets.rb +5 -66
- data/lib/jets/application.rb +29 -112
- data/lib/jets/application/default_config.rb +95 -0
- data/lib/jets/autoloaders.rb +96 -0
- data/lib/jets/aws_services.rb +0 -4
- data/lib/jets/booter.rb +24 -127
- data/lib/jets/builders/code_builder.rb +1 -1
- data/lib/jets/builders/code_size.rb +1 -1
- data/lib/jets/builders/gem_replacer.rb +1 -1
- data/lib/jets/builders/handler_generator.rb +1 -1
- data/lib/jets/builders/lambda_layer.rb +1 -1
- data/lib/jets/builders/md5.rb +1 -1
- data/lib/jets/builders/md5_zip.rb +1 -1
- data/lib/jets/builders/purger.rb +1 -1
- data/lib/jets/builders/rack_packager.rb +1 -1
- data/lib/jets/builders/reconfigure_rails.rb +1 -1
- data/lib/jets/builders/ruby_packager.rb +1 -1
- data/lib/jets/builders/tidy.rb +1 -1
- data/lib/jets/builders/util.rb +1 -1
- data/lib/jets/bundle.rb +59 -0
- data/lib/jets/cfn/builders/api_deployment_builder.rb +1 -1
- data/lib/jets/cfn/builders/api_gateway_builder.rb +1 -1
- data/lib/jets/cfn/builders/base_child_builder.rb +1 -1
- data/lib/jets/cfn/builders/controller_builder.rb +1 -1
- data/lib/jets/cfn/builders/function_builder.rb +1 -1
- data/lib/jets/cfn/builders/interface.rb +1 -1
- data/lib/jets/cfn/builders/job_builder.rb +1 -1
- data/lib/jets/cfn/builders/parent_builder.rb +1 -1
- data/lib/jets/cfn/builders/rule_builder.rb +1 -1
- data/lib/jets/cfn/builders/shared_builder.rb +1 -1
- data/lib/jets/cfn/ship.rb +2 -6
- data/lib/jets/cfn/status.rb +1 -1
- data/lib/jets/cfn/upload.rb +1 -1
- data/lib/jets/cli.rb +39 -34
- data/lib/jets/commands/base.rb +12 -30
- data/lib/jets/commands/call.rb +0 -5
- data/lib/jets/commands/clean.rb +0 -4
- data/lib/jets/commands/console.rb +0 -1
- data/lib/jets/commands/db.rb +0 -2
- data/lib/jets/commands/dynamodb.rb +0 -3
- data/lib/jets/commands/help/call.md +3 -3
- data/lib/jets/commands/import.rb +1 -7
- data/lib/jets/commands/import/{rail.rb → rails.rb} +1 -1
- data/lib/jets/commands/main.rb +3 -1
- data/lib/jets/commands/new.rb +1 -1
- data/lib/jets/commands/rake_tasks.rb +2 -1
- data/lib/jets/commands/runner.rb +0 -2
- data/lib/jets/controller.rb +0 -14
- data/lib/jets/controller/base.rb +1 -1
- data/lib/jets/controller/cookies.rb +0 -2
- data/lib/jets/controller/middleware/local.rb +0 -4
- data/lib/jets/controller/rendering.rb +0 -1
- data/lib/jets/controller/rendering/rack_renderer.rb +1 -2
- data/lib/jets/core.rb +2 -7
- data/lib/jets/core_ext/kernel.rb +9 -52
- data/lib/jets/internal/app/jobs/jets/preheat_job.rb +8 -0
- data/lib/jets/{mailer.rb → internal/turbines/jets/mailer.rb} +0 -0
- data/lib/jets/job/base.rb +1 -3
- data/lib/jets/job/dsl.rb +0 -9
- data/lib/jets/logger.rb +0 -3
- data/lib/jets/mega/request.rb +0 -1
- data/lib/jets/middleware.rb +0 -5
- data/lib/jets/poly_fun.rb +0 -9
- data/lib/jets/resource.rb +0 -18
- data/lib/jets/resource/api_gateway/rest_api.rb +0 -4
- data/lib/jets/resource/api_gateway/rest_api/routes.rb +0 -4
- data/lib/jets/resource/api_gateway/rest_api/routes/change.rb +0 -4
- data/lib/jets/resource/api_gateway/rest_api/routes/collision.rb +0 -2
- data/lib/jets/resource/iot/topic_rule.rb +1 -1
- data/lib/jets/resource/lambda/function.rb +0 -1
- data/lib/jets/router.rb +0 -2
- data/lib/jets/rule/base.rb +1 -1
- data/lib/jets/spec_helpers.rb +1 -4
- data/lib/jets/stack.rb +1 -24
- data/lib/jets/stack/depends.rb +0 -2
- data/lib/jets/stack/main.rb +0 -1
- data/lib/jets/stack/main/dsl.rb +0 -7
- data/lib/jets/stack/main/{extensions → dsl}/base.rb +0 -0
- data/lib/jets/stack/main/{extensions → dsl}/cloudwatch.rb +0 -0
- data/lib/jets/stack/main/{extensions → dsl}/iam.rb +0 -0
- data/lib/jets/stack/main/{extensions → dsl}/lambda.rb +0 -0
- data/lib/jets/stack/main/{extensions → dsl}/s3.rb +0 -0
- data/lib/jets/stack/main/{extensions → dsl}/sns.rb +0 -0
- data/lib/jets/stack/main/{extensions → dsl}/sqs.rb +0 -0
- data/lib/jets/stack/output.rb +0 -3
- data/lib/jets/stack/parameter.rb +0 -1
- data/lib/jets/stack/resource.rb +0 -1
- data/lib/jets/turbo.rb +11 -4
- data/lib/jets/turbo/{rail.rb → rails.rb} +1 -1
- data/lib/jets/version.rb +1 -1
- metadata +58 -1075
- data/lib/jets/builders.rb +0 -16
- data/lib/jets/builders/shim_vars.rb +0 -5
- data/lib/jets/cfn.rb +0 -6
- data/lib/jets/cfn/builders.rb +0 -20
- data/lib/jets/commands.rb +0 -27
- data/lib/jets/commands/markdown.rb +0 -8
- data/lib/jets/controller/middleware.rb +0 -5
- data/lib/jets/controller/rack.rb +0 -5
- data/lib/jets/io.rb +0 -14
- data/lib/jets/job.rb +0 -4
- data/lib/jets/job/helpers.rb +0 -5
- data/lib/jets/lambda.rb +0 -18
- data/lib/jets/mega.rb +0 -7
- data/lib/jets/processors.rb +0 -4
- data/lib/jets/resource/api_gateway.rb +0 -9
- data/lib/jets/resource/api_gateway/base_path.rb +0 -5
- data/lib/jets/resource/child_stack.rb +0 -7
- data/lib/jets/resource/config.rb +0 -4
- data/lib/jets/resource/events.rb +0 -3
- data/lib/jets/resource/iam.rb +0 -8
- data/lib/jets/resource/iot.rb +0 -3
- data/lib/jets/resource/lambda.rb +0 -6
- data/lib/jets/resource/logs.rb +0 -3
- data/lib/jets/resource/route53.rb +0 -3
- data/lib/jets/resource/s3.rb +0 -3
- data/lib/jets/resource/sns.rb +0 -5
- data/lib/jets/resource/sqs.rb +0 -3
- data/lib/jets/rule.rb +0 -4
- data/vendor/jets-gems/Gemfile +0 -6
- data/vendor/jets-gems/LICENSE.txt +0 -21
- data/vendor/jets-gems/README.md +0 -19
- data/vendor/jets-gems/Rakefile +0 -6
- data/vendor/jets-gems/bin/console +0 -14
- data/vendor/jets-gems/bin/setup +0 -8
- data/vendor/jets-gems/jets-gems.gemspec +0 -30
- data/vendor/jets-gems/lib/jets-gems.rb +0 -1
- data/vendor/jets-gems/lib/jets/gems.rb +0 -17
- data/vendor/jets-gems/lib/jets/gems/agree.rb +0 -60
- data/vendor/jets-gems/lib/jets/gems/check.rb +0 -190
- data/vendor/jets-gems/lib/jets/gems/exist.rb +0 -56
- data/vendor/jets-gems/lib/jets/gems/extract.rb +0 -7
- data/vendor/jets-gems/lib/jets/gems/extract/base.rb +0 -74
- data/vendor/jets-gems/lib/jets/gems/extract/gem.rb +0 -105
- data/vendor/jets-gems/lib/jets/gems/extract/ruby.rb +0 -71
- data/vendor/jets-gems/lib/jets/gems/report.rb +0 -69
- data/vendor/jets-gems/lib/jets/gems/version.rb +0 -5
- data/vendor/jets-gems/spec/jets/gems_spec.rb +0 -5
- data/vendor/jets-gems/spec/spec_helper.rb +0 -14
- data/vendor/rails/Brewfile +0 -13
- data/vendor/rails/CODE_OF_CONDUCT.md +0 -12
- data/vendor/rails/CONTRIBUTING.md +0 -49
- data/vendor/rails/Gemfile +0 -174
- data/vendor/rails/MIT-LICENSE +0 -20
- data/vendor/rails/RAILS_VERSION +0 -1
- data/vendor/rails/README.md +0 -97
- data/vendor/rails/RELEASING_RAILS.md +0 -225
- data/vendor/rails/Rakefile +0 -72
- data/vendor/rails/actionpack/CHANGELOG.md +0 -407
- data/vendor/rails/actionpack/MIT-LICENSE +0 -21
- data/vendor/rails/actionpack/README.rdoc +0 -57
- data/vendor/rails/actionpack/Rakefile +0 -40
- data/vendor/rails/actionpack/actionpack.gemspec +0 -38
- data/vendor/rails/actionpack/bin/test +0 -5
- data/vendor/rails/actionpack/lib/abstract_controller.rb +0 -27
- data/vendor/rails/actionpack/lib/abstract_controller/asset_paths.rb +0 -12
- data/vendor/rails/actionpack/lib/abstract_controller/base.rb +0 -265
- data/vendor/rails/actionpack/lib/abstract_controller/caching.rb +0 -66
- data/vendor/rails/actionpack/lib/abstract_controller/caching/fragments.rb +0 -166
- data/vendor/rails/actionpack/lib/abstract_controller/callbacks.rb +0 -212
- data/vendor/rails/actionpack/lib/abstract_controller/collector.rb +0 -43
- data/vendor/rails/actionpack/lib/abstract_controller/error.rb +0 -6
- data/vendor/rails/actionpack/lib/abstract_controller/helpers.rb +0 -194
- data/vendor/rails/actionpack/lib/abstract_controller/logger.rb +0 -14
- data/vendor/rails/actionpack/lib/abstract_controller/railties/routes_helpers.rb +0 -20
- data/vendor/rails/actionpack/lib/abstract_controller/rendering.rb +0 -127
- data/vendor/rails/actionpack/lib/abstract_controller/translation.rb +0 -31
- data/vendor/rails/actionpack/lib/abstract_controller/url_for.rb +0 -35
- data/vendor/rails/actionpack/lib/action_controller.rb +0 -66
- data/vendor/rails/actionpack/lib/action_controller/api.rb +0 -149
- data/vendor/rails/actionpack/lib/action_controller/api/api_rendering.rb +0 -16
- data/vendor/rails/actionpack/lib/action_controller/base.rb +0 -276
- data/vendor/rails/actionpack/lib/action_controller/caching.rb +0 -46
- data/vendor/rails/actionpack/lib/action_controller/form_builder.rb +0 -50
- data/vendor/rails/actionpack/lib/action_controller/log_subscriber.rb +0 -78
- data/vendor/rails/actionpack/lib/action_controller/metal.rb +0 -256
- data/vendor/rails/actionpack/lib/action_controller/metal/basic_implicit_render.rb +0 -13
- data/vendor/rails/actionpack/lib/action_controller/metal/conditional_get.rb +0 -274
- data/vendor/rails/actionpack/lib/action_controller/metal/content_security_policy.rb +0 -52
- data/vendor/rails/actionpack/lib/action_controller/metal/cookies.rb +0 -16
- data/vendor/rails/actionpack/lib/action_controller/metal/data_streaming.rb +0 -152
- data/vendor/rails/actionpack/lib/action_controller/metal/etag_with_flash.rb +0 -18
- data/vendor/rails/actionpack/lib/action_controller/metal/etag_with_template_digest.rb +0 -57
- data/vendor/rails/actionpack/lib/action_controller/metal/exceptions.rb +0 -53
- data/vendor/rails/actionpack/lib/action_controller/metal/flash.rb +0 -61
- data/vendor/rails/actionpack/lib/action_controller/metal/force_ssl.rb +0 -99
- data/vendor/rails/actionpack/lib/action_controller/metal/head.rb +0 -60
- data/vendor/rails/actionpack/lib/action_controller/metal/helpers.rb +0 -123
- data/vendor/rails/actionpack/lib/action_controller/metal/http_authentication.rb +0 -519
- data/vendor/rails/actionpack/lib/action_controller/metal/implicit_render.rb +0 -73
- data/vendor/rails/actionpack/lib/action_controller/metal/instrumentation.rb +0 -107
- data/vendor/rails/actionpack/lib/action_controller/metal/live.rb +0 -312
- data/vendor/rails/actionpack/lib/action_controller/metal/mime_responds.rb +0 -313
- data/vendor/rails/actionpack/lib/action_controller/metal/parameter_encoding.rb +0 -51
- data/vendor/rails/actionpack/lib/action_controller/metal/params_wrapper.rb +0 -293
- data/vendor/rails/actionpack/lib/action_controller/metal/redirecting.rb +0 -133
- data/vendor/rails/actionpack/lib/action_controller/metal/renderers.rb +0 -181
- data/vendor/rails/actionpack/lib/action_controller/metal/rendering.rb +0 -122
- data/vendor/rails/actionpack/lib/action_controller/metal/request_forgery_protection.rb +0 -445
- data/vendor/rails/actionpack/lib/action_controller/metal/rescue.rb +0 -28
- data/vendor/rails/actionpack/lib/action_controller/metal/streaming.rb +0 -223
- data/vendor/rails/actionpack/lib/action_controller/metal/strong_parameters.rb +0 -1086
- data/vendor/rails/actionpack/lib/action_controller/metal/testing.rb +0 -16
- data/vendor/rails/actionpack/lib/action_controller/metal/url_for.rb +0 -58
- data/vendor/rails/actionpack/lib/action_controller/railtie.rb +0 -89
- data/vendor/rails/actionpack/lib/action_controller/railties/helpers.rb +0 -24
- data/vendor/rails/actionpack/lib/action_controller/renderer.rb +0 -117
- data/vendor/rails/actionpack/lib/action_controller/template_assertions.rb +0 -11
- data/vendor/rails/actionpack/lib/action_controller/test_case.rb +0 -629
- data/vendor/rails/actionpack/lib/action_dispatch.rb +0 -112
- data/vendor/rails/actionpack/lib/action_dispatch/http/cache.rb +0 -220
- data/vendor/rails/actionpack/lib/action_dispatch/http/content_security_policy.rb +0 -272
- data/vendor/rails/actionpack/lib/action_dispatch/http/filter_parameters.rb +0 -84
- data/vendor/rails/actionpack/lib/action_dispatch/http/filter_redirect.rb +0 -37
- data/vendor/rails/actionpack/lib/action_dispatch/http/headers.rb +0 -132
- data/vendor/rails/actionpack/lib/action_dispatch/http/mime_negotiation.rb +0 -170
- data/vendor/rails/actionpack/lib/action_dispatch/http/mime_type.rb +0 -342
- data/vendor/rails/actionpack/lib/action_dispatch/http/mime_types.rb +0 -50
- data/vendor/rails/actionpack/lib/action_dispatch/http/parameter_filter.rb +0 -86
- data/vendor/rails/actionpack/lib/action_dispatch/http/parameters.rb +0 -126
- data/vendor/rails/actionpack/lib/action_dispatch/http/rack_cache.rb +0 -63
- data/vendor/rails/actionpack/lib/action_dispatch/http/request.rb +0 -430
- data/vendor/rails/actionpack/lib/action_dispatch/http/response.rb +0 -520
- data/vendor/rails/actionpack/lib/action_dispatch/http/upload.rb +0 -84
- data/vendor/rails/actionpack/lib/action_dispatch/http/url.rb +0 -350
- data/vendor/rails/actionpack/lib/action_dispatch/journey.rb +0 -7
- data/vendor/rails/actionpack/lib/action_dispatch/journey/formatter.rb +0 -189
- data/vendor/rails/actionpack/lib/action_dispatch/journey/gtg/builder.rb +0 -164
- data/vendor/rails/actionpack/lib/action_dispatch/journey/gtg/simulator.rb +0 -41
- data/vendor/rails/actionpack/lib/action_dispatch/journey/gtg/transition_table.rb +0 -158
- data/vendor/rails/actionpack/lib/action_dispatch/journey/nfa/builder.rb +0 -78
- data/vendor/rails/actionpack/lib/action_dispatch/journey/nfa/dot.rb +0 -36
- data/vendor/rails/actionpack/lib/action_dispatch/journey/nfa/simulator.rb +0 -49
- data/vendor/rails/actionpack/lib/action_dispatch/journey/nfa/transition_table.rb +0 -120
- data/vendor/rails/actionpack/lib/action_dispatch/journey/nodes/node.rb +0 -140
- data/vendor/rails/actionpack/lib/action_dispatch/journey/parser.rb +0 -199
- data/vendor/rails/actionpack/lib/action_dispatch/journey/parser.y +0 -50
- data/vendor/rails/actionpack/lib/action_dispatch/journey/parser_extras.rb +0 -31
- data/vendor/rails/actionpack/lib/action_dispatch/journey/path/pattern.rb +0 -198
- data/vendor/rails/actionpack/lib/action_dispatch/journey/route.rb +0 -203
- data/vendor/rails/actionpack/lib/action_dispatch/journey/router.rb +0 -156
- data/vendor/rails/actionpack/lib/action_dispatch/journey/router/utils.rb +0 -102
- data/vendor/rails/actionpack/lib/action_dispatch/journey/routes.rb +0 -82
- data/vendor/rails/actionpack/lib/action_dispatch/journey/scanner.rb +0 -64
- data/vendor/rails/actionpack/lib/action_dispatch/journey/visitors.rb +0 -268
- data/vendor/rails/actionpack/lib/action_dispatch/journey/visualizer/fsm.css +0 -30
- data/vendor/rails/actionpack/lib/action_dispatch/journey/visualizer/fsm.js +0 -134
- data/vendor/rails/actionpack/lib/action_dispatch/journey/visualizer/index.html.erb +0 -52
- data/vendor/rails/actionpack/lib/action_dispatch/middleware/callbacks.rb +0 -36
- data/vendor/rails/actionpack/lib/action_dispatch/middleware/cookies.rb +0 -685
- data/vendor/rails/actionpack/lib/action_dispatch/middleware/debug_exceptions.rb +0 -205
- data/vendor/rails/actionpack/lib/action_dispatch/middleware/debug_locks.rb +0 -124
- data/vendor/rails/actionpack/lib/action_dispatch/middleware/exception_wrapper.rb +0 -147
- data/vendor/rails/actionpack/lib/action_dispatch/middleware/executor.rb +0 -21
- data/vendor/rails/actionpack/lib/action_dispatch/middleware/flash.rb +0 -300
- data/vendor/rails/actionpack/lib/action_dispatch/middleware/public_exceptions.rb +0 -57
- data/vendor/rails/actionpack/lib/action_dispatch/middleware/reloader.rb +0 -12
- data/vendor/rails/actionpack/lib/action_dispatch/middleware/remote_ip.rb +0 -183
- data/vendor/rails/actionpack/lib/action_dispatch/middleware/request_id.rb +0 -43
- data/vendor/rails/actionpack/lib/action_dispatch/middleware/session/abstract_store.rb +0 -92
- data/vendor/rails/actionpack/lib/action_dispatch/middleware/session/cache_store.rb +0 -54
- data/vendor/rails/actionpack/lib/action_dispatch/middleware/session/cookie_store.rb +0 -117
- data/vendor/rails/actionpack/lib/action_dispatch/middleware/session/mem_cache_store.rb +0 -28
- data/vendor/rails/actionpack/lib/action_dispatch/middleware/show_exceptions.rb +0 -62
- data/vendor/rails/actionpack/lib/action_dispatch/middleware/ssl.rb +0 -150
- data/vendor/rails/actionpack/lib/action_dispatch/middleware/stack.rb +0 -116
- data/vendor/rails/actionpack/lib/action_dispatch/middleware/static.rb +0 -130
- data/vendor/rails/actionpack/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb +0 -22
- data/vendor/rails/actionpack/lib/action_dispatch/middleware/templates/rescues/_request_and_response.text.erb +0 -23
- data/vendor/rails/actionpack/lib/action_dispatch/middleware/templates/rescues/_source.html.erb +0 -27
- data/vendor/rails/actionpack/lib/action_dispatch/middleware/templates/rescues/_source.text.erb +0 -8
- data/vendor/rails/actionpack/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb +0 -52
- data/vendor/rails/actionpack/lib/action_dispatch/middleware/templates/rescues/_trace.text.erb +0 -9
- data/vendor/rails/actionpack/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb +0 -16
- data/vendor/rails/actionpack/lib/action_dispatch/middleware/templates/rescues/diagnostics.text.erb +0 -9
- data/vendor/rails/actionpack/lib/action_dispatch/middleware/templates/rescues/invalid_statement.html.erb +0 -21
- data/vendor/rails/actionpack/lib/action_dispatch/middleware/templates/rescues/invalid_statement.text.erb +0 -13
- data/vendor/rails/actionpack/lib/action_dispatch/middleware/templates/rescues/layout.erb +0 -161
- data/vendor/rails/actionpack/lib/action_dispatch/middleware/templates/rescues/missing_template.html.erb +0 -11
- data/vendor/rails/actionpack/lib/action_dispatch/middleware/templates/rescues/missing_template.text.erb +0 -3
- data/vendor/rails/actionpack/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb +0 -32
- data/vendor/rails/actionpack/lib/action_dispatch/middleware/templates/rescues/routing_error.text.erb +0 -11
- data/vendor/rails/actionpack/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb +0 -20
- data/vendor/rails/actionpack/lib/action_dispatch/middleware/templates/rescues/template_error.text.erb +0 -7
- data/vendor/rails/actionpack/lib/action_dispatch/middleware/templates/rescues/unknown_action.html.erb +0 -6
- data/vendor/rails/actionpack/lib/action_dispatch/middleware/templates/rescues/unknown_action.text.erb +0 -3
- data/vendor/rails/actionpack/lib/action_dispatch/middleware/templates/routes/_route.html.erb +0 -16
- data/vendor/rails/actionpack/lib/action_dispatch/middleware/templates/routes/_table.html.erb +0 -200
- data/vendor/rails/actionpack/lib/action_dispatch/railtie.rb +0 -55
- data/vendor/rails/actionpack/lib/action_dispatch/request/session.rb +0 -234
- data/vendor/rails/actionpack/lib/action_dispatch/request/utils.rb +0 -78
- data/vendor/rails/actionpack/lib/action_dispatch/routing.rb +0 -260
- data/vendor/rails/actionpack/lib/action_dispatch/routing/endpoint.rb +0 -17
- data/vendor/rails/actionpack/lib/action_dispatch/routing/inspector.rb +0 -225
- data/vendor/rails/actionpack/lib/action_dispatch/routing/mapper.rb +0 -2267
- data/vendor/rails/actionpack/lib/action_dispatch/routing/polymorphic_routes.rb +0 -352
- data/vendor/rails/actionpack/lib/action_dispatch/routing/redirection.rb +0 -201
- data/vendor/rails/actionpack/lib/action_dispatch/routing/route_set.rb +0 -890
- data/vendor/rails/actionpack/lib/action_dispatch/routing/routes_proxy.rb +0 -69
- data/vendor/rails/actionpack/lib/action_dispatch/routing/url_for.rb +0 -236
- data/vendor/rails/actionpack/lib/action_dispatch/system_test_case.rb +0 -147
- data/vendor/rails/actionpack/lib/action_dispatch/system_testing/browser.rb +0 -49
- data/vendor/rails/actionpack/lib/action_dispatch/system_testing/driver.rb +0 -59
- data/vendor/rails/actionpack/lib/action_dispatch/system_testing/server.rb +0 -31
- data/vendor/rails/actionpack/lib/action_dispatch/system_testing/test_helpers/screenshot_helper.rb +0 -96
- data/vendor/rails/actionpack/lib/action_dispatch/system_testing/test_helpers/setup_and_teardown.rb +0 -31
- data/vendor/rails/actionpack/lib/action_dispatch/system_testing/test_helpers/undef_methods.rb +0 -26
- data/vendor/rails/actionpack/lib/action_dispatch/testing/assertion_response.rb +0 -47
- data/vendor/rails/actionpack/lib/action_dispatch/testing/assertions.rb +0 -24
- data/vendor/rails/actionpack/lib/action_dispatch/testing/assertions/response.rb +0 -107
- data/vendor/rails/actionpack/lib/action_dispatch/testing/assertions/routing.rb +0 -222
- data/vendor/rails/actionpack/lib/action_dispatch/testing/integration.rb +0 -652
- data/vendor/rails/actionpack/lib/action_dispatch/testing/request_encoder.rb +0 -55
- data/vendor/rails/actionpack/lib/action_dispatch/testing/test_process.rb +0 -50
- data/vendor/rails/actionpack/lib/action_dispatch/testing/test_request.rb +0 -71
- data/vendor/rails/actionpack/lib/action_dispatch/testing/test_response.rb +0 -53
- data/vendor/rails/actionpack/lib/action_pack.rb +0 -26
- data/vendor/rails/actionpack/lib/action_pack/gem_version.rb +0 -17
- data/vendor/rails/actionpack/lib/action_pack/version.rb +0 -10
- data/vendor/rails/actionpack/test/abstract/callbacks_test.rb +0 -270
- data/vendor/rails/actionpack/test/abstract/collector_test.rb +0 -65
- data/vendor/rails/actionpack/test/abstract/translation_test.rb +0 -79
- data/vendor/rails/actionpack/test/abstract_unit.rb +0 -457
- data/vendor/rails/actionpack/test/assertions/response_assertions_test.rb +0 -141
- data/vendor/rails/actionpack/test/controller/action_pack_assertions_test.rb +0 -493
- data/vendor/rails/actionpack/test/controller/api/conditional_get_test.rb +0 -59
- data/vendor/rails/actionpack/test/controller/api/data_streaming_test.rb +0 -28
- data/vendor/rails/actionpack/test/controller/api/force_ssl_test.rb +0 -22
- data/vendor/rails/actionpack/test/controller/api/implicit_render_test.rb +0 -17
- data/vendor/rails/actionpack/test/controller/api/params_wrapper_test.rb +0 -28
- data/vendor/rails/actionpack/test/controller/api/redirect_to_test.rb +0 -21
- data/vendor/rails/actionpack/test/controller/api/renderers_test.rb +0 -50
- data/vendor/rails/actionpack/test/controller/api/url_for_test.rb +0 -22
- data/vendor/rails/actionpack/test/controller/api/with_cookies_test.rb +0 -23
- data/vendor/rails/actionpack/test/controller/api/with_helpers_test.rb +0 -44
- data/vendor/rails/actionpack/test/controller/base_test.rb +0 -323
- data/vendor/rails/actionpack/test/controller/caching_test.rb +0 -511
- data/vendor/rails/actionpack/test/controller/content_type_test.rb +0 -169
- data/vendor/rails/actionpack/test/controller/controller_fixtures/app/controllers/admin/user_controller.rb +0 -0
- data/vendor/rails/actionpack/test/controller/controller_fixtures/app/controllers/user_controller.rb +0 -0
- data/vendor/rails/actionpack/test/controller/controller_fixtures/vendor/plugins/bad_plugin/lib/plugin_controller.rb +0 -0
- data/vendor/rails/actionpack/test/controller/default_url_options_with_before_action_test.rb +0 -28
- data/vendor/rails/actionpack/test/controller/filters_test.rb +0 -1050
- data/vendor/rails/actionpack/test/controller/flash_hash_test.rb +0 -216
- data/vendor/rails/actionpack/test/controller/flash_test.rb +0 -373
- data/vendor/rails/actionpack/test/controller/force_ssl_test.rb +0 -333
- data/vendor/rails/actionpack/test/controller/form_builder_test.rb +0 -19
- data/vendor/rails/actionpack/test/controller/helper_test.rb +0 -295
- data/vendor/rails/actionpack/test/controller/http_basic_authentication_test.rb +0 -179
- data/vendor/rails/actionpack/test/controller/http_digest_authentication_test.rb +0 -282
- data/vendor/rails/actionpack/test/controller/http_token_authentication_test.rb +0 -216
- data/vendor/rails/actionpack/test/controller/integration_test.rb +0 -1136
- data/vendor/rails/actionpack/test/controller/live_stream_test.rb +0 -518
- data/vendor/rails/actionpack/test/controller/localized_templates_test.rb +0 -48
- data/vendor/rails/actionpack/test/controller/log_subscriber_test.rb +0 -371
- data/vendor/rails/actionpack/test/controller/metal/renderers_test.rb +0 -50
- data/vendor/rails/actionpack/test/controller/metal_test.rb +0 -32
- data/vendor/rails/actionpack/test/controller/mime/accept_format_test.rb +0 -94
- data/vendor/rails/actionpack/test/controller/mime/respond_to_test.rb +0 -843
- data/vendor/rails/actionpack/test/controller/new_base/bare_metal_test.rb +0 -184
- data/vendor/rails/actionpack/test/controller/new_base/base_test.rb +0 -131
- data/vendor/rails/actionpack/test/controller/new_base/content_negotiation_test.rb +0 -28
- data/vendor/rails/actionpack/test/controller/new_base/content_type_test.rb +0 -116
- data/vendor/rails/actionpack/test/controller/new_base/middleware_test.rb +0 -112
- data/vendor/rails/actionpack/test/controller/new_base/render_action_test.rb +0 -314
- data/vendor/rails/actionpack/test/controller/new_base/render_body_test.rb +0 -172
- data/vendor/rails/actionpack/test/controller/new_base/render_context_test.rb +0 -54
- data/vendor/rails/actionpack/test/controller/new_base/render_file_test.rb +0 -72
- data/vendor/rails/actionpack/test/controller/new_base/render_html_test.rb +0 -192
- data/vendor/rails/actionpack/test/controller/new_base/render_implicit_action_test.rb +0 -59
- data/vendor/rails/actionpack/test/controller/new_base/render_layout_test.rb +0 -128
- data/vendor/rails/actionpack/test/controller/new_base/render_partial_test.rb +0 -62
- data/vendor/rails/actionpack/test/controller/new_base/render_plain_test.rb +0 -170
- data/vendor/rails/actionpack/test/controller/new_base/render_streaming_test.rb +0 -116
- data/vendor/rails/actionpack/test/controller/new_base/render_template_test.rb +0 -240
- data/vendor/rails/actionpack/test/controller/new_base/render_test.rb +0 -142
- data/vendor/rails/actionpack/test/controller/new_base/render_xml_test.rb +0 -12
- data/vendor/rails/actionpack/test/controller/output_escaping_test.rb +0 -17
- data/vendor/rails/actionpack/test/controller/parameter_encoding_test.rb +0 -52
- data/vendor/rails/actionpack/test/controller/parameters/accessors_test.rb +0 -324
- data/vendor/rails/actionpack/test/controller/parameters/always_permitted_parameters_test.rb +0 -30
- data/vendor/rails/actionpack/test/controller/parameters/dup_test.rb +0 -67
- data/vendor/rails/actionpack/test/controller/parameters/log_on_unpermitted_params_test.rb +0 -70
- data/vendor/rails/actionpack/test/controller/parameters/multi_parameter_attributes_test.rb +0 -39
- data/vendor/rails/actionpack/test/controller/parameters/mutators_test.rb +0 -122
- data/vendor/rails/actionpack/test/controller/parameters/nested_parameters_permit_test.rb +0 -184
- data/vendor/rails/actionpack/test/controller/parameters/parameters_permit_test.rb +0 -516
- data/vendor/rails/actionpack/test/controller/parameters/raise_on_unpermitted_params_test.rb +0 -33
- data/vendor/rails/actionpack/test/controller/parameters/serialization_test.rb +0 -55
- data/vendor/rails/actionpack/test/controller/params_wrapper_test.rb +0 -422
- data/vendor/rails/actionpack/test/controller/permitted_params_test.rb +0 -27
- data/vendor/rails/actionpack/test/controller/redirect_test.rb +0 -395
- data/vendor/rails/actionpack/test/controller/render_js_test.rb +0 -36
- data/vendor/rails/actionpack/test/controller/render_json_test.rb +0 -137
- data/vendor/rails/actionpack/test/controller/render_test.rb +0 -843
- data/vendor/rails/actionpack/test/controller/render_xml_test.rb +0 -102
- data/vendor/rails/actionpack/test/controller/renderer_test.rb +0 -136
- data/vendor/rails/actionpack/test/controller/renderers_test.rb +0 -91
- data/vendor/rails/actionpack/test/controller/request/test_request_test.rb +0 -42
- data/vendor/rails/actionpack/test/controller/request_forgery_protection_test.rb +0 -1013
- data/vendor/rails/actionpack/test/controller/required_params_test.rb +0 -100
- data/vendor/rails/actionpack/test/controller/rescue_test.rb +0 -364
- data/vendor/rails/actionpack/test/controller/resources_test.rb +0 -1369
- data/vendor/rails/actionpack/test/controller/routing_test.rb +0 -2108
- data/vendor/rails/actionpack/test/controller/runner_test.rb +0 -24
- data/vendor/rails/actionpack/test/controller/send_file_test.rb +0 -259
- data/vendor/rails/actionpack/test/controller/show_exceptions_test.rb +0 -114
- data/vendor/rails/actionpack/test/controller/streaming_test.rb +0 -28
- data/vendor/rails/actionpack/test/controller/test_case_test.rb +0 -1157
- data/vendor/rails/actionpack/test/controller/url_for_integration_test.rb +0 -192
- data/vendor/rails/actionpack/test/controller/url_for_test.rb +0 -519
- data/vendor/rails/actionpack/test/controller/url_rewriter_test.rb +0 -92
- data/vendor/rails/actionpack/test/controller/webservice_test.rb +0 -135
- data/vendor/rails/actionpack/test/dispatch/callbacks_test.rb +0 -47
- data/vendor/rails/actionpack/test/dispatch/content_security_policy_test.rb +0 -525
- data/vendor/rails/actionpack/test/dispatch/cookies_test.rb +0 -1345
- data/vendor/rails/actionpack/test/dispatch/debug_exceptions_test.rb +0 -502
- data/vendor/rails/actionpack/test/dispatch/debug_locks_test.rb +0 -38
- data/vendor/rails/actionpack/test/dispatch/exception_wrapper_test.rb +0 -120
- data/vendor/rails/actionpack/test/dispatch/executor_test.rb +0 -136
- data/vendor/rails/actionpack/test/dispatch/header_test.rb +0 -169
- data/vendor/rails/actionpack/test/dispatch/live_response_test.rb +0 -98
- data/vendor/rails/actionpack/test/dispatch/mapper_test.rb +0 -210
- data/vendor/rails/actionpack/test/dispatch/middleware_stack_test.rb +0 -115
- data/vendor/rails/actionpack/test/dispatch/mime_type_test.rb +0 -187
- data/vendor/rails/actionpack/test/dispatch/mount_test.rb +0 -95
- data/vendor/rails/actionpack/test/dispatch/prefix_generation_test.rb +0 -463
- data/vendor/rails/actionpack/test/dispatch/rack_cache_test.rb +0 -23
- data/vendor/rails/actionpack/test/dispatch/reloader_test.rb +0 -167
- data/vendor/rails/actionpack/test/dispatch/request/json_params_parsing_test.rb +0 -207
- data/vendor/rails/actionpack/test/dispatch/request/multipart_params_parsing_test.rb +0 -202
- data/vendor/rails/actionpack/test/dispatch/request/query_string_parsing_test.rb +0 -176
- data/vendor/rails/actionpack/test/dispatch/request/session_test.rb +0 -165
- data/vendor/rails/actionpack/test/dispatch/request/url_encoded_params_parsing_test.rb +0 -181
- data/vendor/rails/actionpack/test/dispatch/request_id_test.rb +0 -75
- data/vendor/rails/actionpack/test/dispatch/request_test.rb +0 -1307
- data/vendor/rails/actionpack/test/dispatch/response_test.rb +0 -542
- data/vendor/rails/actionpack/test/dispatch/routing/concerns_test.rb +0 -124
- data/vendor/rails/actionpack/test/dispatch/routing/custom_url_helpers_test.rb +0 -333
- data/vendor/rails/actionpack/test/dispatch/routing/inspector_test.rb +0 -425
- data/vendor/rails/actionpack/test/dispatch/routing/ipv6_redirect_test.rb +0 -46
- data/vendor/rails/actionpack/test/dispatch/routing/route_set_test.rb +0 -166
- data/vendor/rails/actionpack/test/dispatch/routing_assertions_test.rb +0 -209
- data/vendor/rails/actionpack/test/dispatch/routing_test.rb +0 -5112
- data/vendor/rails/actionpack/test/dispatch/runner_test.rb +0 -19
- data/vendor/rails/actionpack/test/dispatch/session/abstract_store_test.rb +0 -58
- data/vendor/rails/actionpack/test/dispatch/session/cache_store_test.rb +0 -183
- data/vendor/rails/actionpack/test/dispatch/session/cookie_store_test.rb +0 -417
- data/vendor/rails/actionpack/test/dispatch/session/mem_cache_store_test.rb +0 -205
- data/vendor/rails/actionpack/test/dispatch/session/test_session_test.rb +0 -65
- data/vendor/rails/actionpack/test/dispatch/show_exceptions_test.rb +0 -138
- data/vendor/rails/actionpack/test/dispatch/ssl_test.rb +0 -228
- data/vendor/rails/actionpack/test/dispatch/static_test.rb +0 -318
- data/vendor/rails/actionpack/test/dispatch/system_testing/driver_test.rb +0 -54
- data/vendor/rails/actionpack/test/dispatch/system_testing/screenshot_helper_test.rb +0 -81
- data/vendor/rails/actionpack/test/dispatch/system_testing/server_test.rb +0 -32
- data/vendor/rails/actionpack/test/dispatch/system_testing/system_test_case_test.rb +0 -84
- data/vendor/rails/actionpack/test/dispatch/test_request_test.rb +0 -131
- data/vendor/rails/actionpack/test/dispatch/test_response_test.rb +0 -37
- data/vendor/rails/actionpack/test/dispatch/uploaded_file_test.rb +0 -113
- data/vendor/rails/actionpack/test/dispatch/url_generation_test.rb +0 -141
- data/vendor/rails/actionpack/test/fixtures/_top_level_partial_only.erb +0 -1
- data/vendor/rails/actionpack/test/fixtures/alternate_helpers/foo_helper.rb +0 -5
- data/vendor/rails/actionpack/test/fixtures/bad_customers/_bad_customer.html.erb +0 -1
- data/vendor/rails/actionpack/test/fixtures/collection_cache/index.html.erb +0 -1
- data/vendor/rails/actionpack/test/fixtures/company.rb +0 -11
- data/vendor/rails/actionpack/test/fixtures/customers/_commented_customer.html.erb +0 -5
- data/vendor/rails/actionpack/test/fixtures/customers/_customer.html.erb +0 -4
- data/vendor/rails/actionpack/test/fixtures/filter_test/implicit_actions/edit.html.erb +0 -1
- data/vendor/rails/actionpack/test/fixtures/filter_test/implicit_actions/show.html.erb +0 -1
- data/vendor/rails/actionpack/test/fixtures/functional_caching/_formatted_partial.html.erb +0 -1
- data/vendor/rails/actionpack/test/fixtures/functional_caching/_partial.erb +0 -3
- data/vendor/rails/actionpack/test/fixtures/functional_caching/formatted_fragment_cached.html.erb +0 -3
- data/vendor/rails/actionpack/test/fixtures/functional_caching/formatted_fragment_cached.xml.builder +0 -5
- data/vendor/rails/actionpack/test/fixtures/functional_caching/formatted_fragment_cached_with_variant.html+phone.erb +0 -3
- data/vendor/rails/actionpack/test/fixtures/functional_caching/fragment_cached.html.erb +0 -3
- data/vendor/rails/actionpack/test/fixtures/functional_caching/fragment_cached_with_options.html.erb +0 -3
- data/vendor/rails/actionpack/test/fixtures/functional_caching/fragment_cached_without_digest.html.erb +0 -3
- data/vendor/rails/actionpack/test/fixtures/functional_caching/html_fragment_cached_with_partial.html.erb +0 -1
- data/vendor/rails/actionpack/test/fixtures/functional_caching/inline_fragment_cached.html.erb +0 -2
- data/vendor/rails/actionpack/test/fixtures/functional_caching/xml_fragment_cached_with_html_partial.xml.builder +0 -5
- data/vendor/rails/actionpack/test/fixtures/helpers/abc_helper.rb +0 -5
- data/vendor/rails/actionpack/test/fixtures/helpers/fun/games_helper.rb +0 -7
- data/vendor/rails/actionpack/test/fixtures/helpers/fun/pdf_helper.rb +0 -7
- data/vendor/rails/actionpack/test/fixtures/helpers/just_me_helper.rb +0 -5
- data/vendor/rails/actionpack/test/fixtures/helpers/me_too_helper.rb +0 -5
- data/vendor/rails/actionpack/test/fixtures/helpers1_pack/pack1_helper.rb +0 -7
- data/vendor/rails/actionpack/test/fixtures/helpers2_pack/pack2_helper.rb +0 -7
- data/vendor/rails/actionpack/test/fixtures/helpers_typo/admin/users_helper.rb +0 -6
- data/vendor/rails/actionpack/test/fixtures/implicit_render_test/empty_action_with_mobile_variant.html+mobile.erb +0 -1
- data/vendor/rails/actionpack/test/fixtures/implicit_render_test/empty_action_with_template.html.erb +0 -1
- data/vendor/rails/actionpack/test/fixtures/layouts/_customers.erb +0 -1
- data/vendor/rails/actionpack/test/fixtures/layouts/block_with_layout.erb +0 -3
- data/vendor/rails/actionpack/test/fixtures/layouts/builder.builder +0 -3
- data/vendor/rails/actionpack/test/fixtures/layouts/partial_with_layout.erb +0 -3
- data/vendor/rails/actionpack/test/fixtures/layouts/standard.html.erb +0 -1
- data/vendor/rails/actionpack/test/fixtures/layouts/talk_from_action.erb +0 -2
- data/vendor/rails/actionpack/test/fixtures/layouts/with_html_partial.html.erb +0 -1
- data/vendor/rails/actionpack/test/fixtures/layouts/xhr.html.erb +0 -2
- data/vendor/rails/actionpack/test/fixtures/layouts/yield.erb +0 -2
- data/vendor/rails/actionpack/test/fixtures/load_me.rb +0 -4
- data/vendor/rails/actionpack/test/fixtures/localized/hello_world.de.html +0 -1
- data/vendor/rails/actionpack/test/fixtures/localized/hello_world.en.html +0 -1
- data/vendor/rails/actionpack/test/fixtures/localized/hello_world.it.erb +0 -1
- data/vendor/rails/actionpack/test/fixtures/multipart/binary_file +0 -0
- data/vendor/rails/actionpack/test/fixtures/multipart/boundary_problem_file +0 -10
- data/vendor/rails/actionpack/test/fixtures/multipart/bracketed_param +0 -5
- data/vendor/rails/actionpack/test/fixtures/multipart/bracketed_utf8_param +0 -5
- data/vendor/rails/actionpack/test/fixtures/multipart/empty +0 -10
- data/vendor/rails/actionpack/test/fixtures/multipart/hello.txt +0 -1
- data/vendor/rails/actionpack/test/fixtures/multipart/large_text_file +0 -10
- data/vendor/rails/actionpack/test/fixtures/multipart/mixed_files +0 -0
- data/vendor/rails/actionpack/test/fixtures/multipart/none +0 -9
- data/vendor/rails/actionpack/test/fixtures/multipart/ruby_on_rails.jpg +0 -0
- data/vendor/rails/actionpack/test/fixtures/multipart/single_parameter +0 -5
- data/vendor/rails/actionpack/test/fixtures/multipart/single_utf8_param +0 -5
- data/vendor/rails/actionpack/test/fixtures/multipart/text_file +0 -10
- data/vendor/rails/actionpack/test/fixtures/multipart/utf8_filename +0 -10
- data/vendor/rails/actionpack/test/fixtures/namespaced/implicit_render_test/hello_world.erb +0 -1
- data/vendor/rails/actionpack/test/fixtures/old_content_type/render_default_content_types_for_respond_to.xml.erb +0 -1
- data/vendor/rails/actionpack/test/fixtures/old_content_type/render_default_for_builder.builder +0 -1
- data/vendor/rails/actionpack/test/fixtures/old_content_type/render_default_for_erb.erb +0 -1
- data/vendor/rails/actionpack/test/fixtures/post_test/layouts/post.html.erb +0 -1
- data/vendor/rails/actionpack/test/fixtures/post_test/layouts/super_post.iphone.erb +0 -1
- data/vendor/rails/actionpack/test/fixtures/post_test/post/index.html.erb +0 -1
- data/vendor/rails/actionpack/test/fixtures/post_test/post/index.iphone.erb +0 -1
- data/vendor/rails/actionpack/test/fixtures/post_test/super_post/index.html.erb +0 -1
- data/vendor/rails/actionpack/test/fixtures/post_test/super_post/index.iphone.erb +0 -1
- data/vendor/rails/actionpack/test/fixtures/public/400.html +0 -1
- data/vendor/rails/actionpack/test/fixtures/public/404.html +0 -1
- data/vendor/rails/actionpack/test/fixtures/public/500.da.html +0 -1
- data/vendor/rails/actionpack/test/fixtures/public/500.html +0 -1
- data/vendor/rails/actionpack/test/fixtures/public/bar.html +0 -1
- data/vendor/rails/actionpack/test/fixtures/public/bar/index.html +0 -1
- data/vendor/rails/actionpack/test/fixtures/public/foo/bar.html +0 -1
- data/vendor/rails/actionpack/test/fixtures/public/foo/baz.css +0 -3
- data/vendor/rails/actionpack/test/fixtures/public/foo/index.html +0 -1
- data/vendor/rails/actionpack/test/fixtures/public/foo/other-index.html +0 -1
- data/vendor/rails/actionpack/test/fixtures/public/foo//343/201/223/343/202/223/343/201/253/343/201/241/343/201/257.html +0 -1
- data/vendor/rails/actionpack/test/fixtures/public/foo//343/201/225/343/202/210/343/201/206/343/201/252/343/202/211.html +0 -1
- data/vendor/rails/actionpack/test/fixtures/public/foo//343/201/225/343/202/210/343/201/206/343/201/252/343/202/211.html.gz +0 -0
- data/vendor/rails/actionpack/test/fixtures/public/gzip/application-a71b3024f80aea3181c09774ca17e712.js +0 -4
- data/vendor/rails/actionpack/test/fixtures/public/gzip/application-a71b3024f80aea3181c09774ca17e712.js.gz +0 -0
- data/vendor/rails/actionpack/test/fixtures/public/gzip/foo.zoo +0 -4
- data/vendor/rails/actionpack/test/fixtures/public/gzip/foo.zoo.gz +0 -0
- data/vendor/rails/actionpack/test/fixtures/public/index.html +0 -1
- data/vendor/rails/actionpack/test/fixtures/public/other-index.html +0 -1
- data/vendor/rails/actionpack/test/fixtures/respond_to/all_types_with_layout.html.erb +0 -1
- data/vendor/rails/actionpack/test/fixtures/respond_to/custom_constant_handling_without_block.mobile.erb +0 -1
- data/vendor/rails/actionpack/test/fixtures/respond_to/iphone_with_html_response_type.html.erb +0 -1
- data/vendor/rails/actionpack/test/fixtures/respond_to/iphone_with_html_response_type.iphone.erb +0 -1
- data/vendor/rails/actionpack/test/fixtures/respond_to/layouts/missing.html.erb +0 -1
- data/vendor/rails/actionpack/test/fixtures/respond_to/layouts/standard.html.erb +0 -1
- data/vendor/rails/actionpack/test/fixtures/respond_to/layouts/standard.iphone.erb +0 -1
- data/vendor/rails/actionpack/test/fixtures/respond_to/using_defaults.html.erb +0 -1
- data/vendor/rails/actionpack/test/fixtures/respond_to/using_defaults.xml.builder +0 -1
- data/vendor/rails/actionpack/test/fixtures/respond_to/using_defaults_with_all.html.erb +0 -1
- data/vendor/rails/actionpack/test/fixtures/respond_to/using_defaults_with_type_list.html.erb +0 -1
- data/vendor/rails/actionpack/test/fixtures/respond_to/using_defaults_with_type_list.xml.builder +0 -1
- data/vendor/rails/actionpack/test/fixtures/respond_to/variant_any_implicit_render.html+phablet.erb +0 -1
- data/vendor/rails/actionpack/test/fixtures/respond_to/variant_any_implicit_render.html+tablet.erb +0 -1
- data/vendor/rails/actionpack/test/fixtures/respond_to/variant_inline_syntax_without_block.html+phone.erb +0 -1
- data/vendor/rails/actionpack/test/fixtures/respond_to/variant_plus_none_for_format.html.erb +0 -1
- data/vendor/rails/actionpack/test/fixtures/respond_to/variant_with_implicit_template_rendering.html+mobile.erb +0 -1
- data/vendor/rails/actionpack/test/fixtures/ruby_template.ruby +0 -2
- data/vendor/rails/actionpack/test/fixtures/session_autoload_test/session_autoload_test/foo.rb +0 -12
- data/vendor/rails/actionpack/test/fixtures/shared.html.erb +0 -1
- data/vendor/rails/actionpack/test/fixtures/star_star_mime/index.js.erb +0 -1
- data/vendor/rails/actionpack/test/fixtures/test/_partial.erb +0 -1
- data/vendor/rails/actionpack/test/fixtures/test/_partial.html.erb +0 -1
- data/vendor/rails/actionpack/test/fixtures/test/_partial.js.erb +0 -1
- data/vendor/rails/actionpack/test/fixtures/test/dot.directory/render_file_with_ivar.erb +0 -1
- data/vendor/rails/actionpack/test/fixtures/test/formatted_xml_erb.builder +0 -1
- data/vendor/rails/actionpack/test/fixtures/test/formatted_xml_erb.html.erb +0 -1
- data/vendor/rails/actionpack/test/fixtures/test/formatted_xml_erb.xml.erb +0 -1
- data/vendor/rails/actionpack/test/fixtures/test/hello/hello.erb +0 -1
- data/vendor/rails/actionpack/test/fixtures/test/hello_world.erb +0 -1
- data/vendor/rails/actionpack/test/fixtures/test/hello_world_with_partial.html.erb +0 -2
- data/vendor/rails/actionpack/test/fixtures/test/hello_xml_world.builder +0 -11
- data/vendor/rails/actionpack/test/fixtures/test/implicit_content_type.atom.builder +0 -2
- data/vendor/rails/actionpack/test/fixtures/test/render_file_with_ivar.erb +0 -1
- data/vendor/rails/actionpack/test/fixtures/test/render_file_with_locals.erb +0 -1
- data/vendor/rails/actionpack/test/fixtures/test/with_implicit_template.erb +0 -1
- data/vendor/rails/actionpack/test/fixtures//345/205/254/345/205/261/bar.html +0 -1
- data/vendor/rails/actionpack/test/fixtures//345/205/254/345/205/261/bar/index.html +0 -1
- data/vendor/rails/actionpack/test/fixtures//345/205/254/345/205/261/foo/bar.html +0 -1
- data/vendor/rails/actionpack/test/fixtures//345/205/254/345/205/261/foo/baz.css +0 -3
- data/vendor/rails/actionpack/test/fixtures//345/205/254/345/205/261/foo/index.html +0 -1
- data/vendor/rails/actionpack/test/fixtures//345/205/254/345/205/261/foo/other-index.html +0 -1
- data/vendor/rails/actionpack/test/fixtures//345/205/254/345/205/261/foo//343/201/223/343/202/223/343/201/253/343/201/241/343/201/257.html +0 -1
- data/vendor/rails/actionpack/test/fixtures//345/205/254/345/205/261/foo//343/201/225/343/202/210/343/201/206/343/201/252/343/202/211.html +0 -1
- data/vendor/rails/actionpack/test/fixtures//345/205/254/345/205/261/foo//343/201/225/343/202/210/343/201/206/343/201/252/343/202/211.html.gz +0 -0
- data/vendor/rails/actionpack/test/fixtures//345/205/254/345/205/261/gzip/application-a71b3024f80aea3181c09774ca17e712.js +0 -4
- data/vendor/rails/actionpack/test/fixtures//345/205/254/345/205/261/gzip/application-a71b3024f80aea3181c09774ca17e712.js.gz +0 -0
- data/vendor/rails/actionpack/test/fixtures//345/205/254/345/205/261/gzip/foo.zoo +0 -4
- data/vendor/rails/actionpack/test/fixtures//345/205/254/345/205/261/gzip/foo.zoo.gz +0 -0
- data/vendor/rails/actionpack/test/fixtures//345/205/254/345/205/261/index.html +0 -1
- data/vendor/rails/actionpack/test/fixtures//345/205/254/345/205/261/other-index.html +0 -1
- data/vendor/rails/actionpack/test/journey/gtg/builder_test.rb +0 -81
- data/vendor/rails/actionpack/test/journey/gtg/transition_table_test.rb +0 -125
- data/vendor/rails/actionpack/test/journey/nfa/simulator_test.rb +0 -100
- data/vendor/rails/actionpack/test/journey/nfa/transition_table_test.rb +0 -74
- data/vendor/rails/actionpack/test/journey/nodes/symbol_test.rb +0 -19
- data/vendor/rails/actionpack/test/journey/path/pattern_test.rb +0 -286
- data/vendor/rails/actionpack/test/journey/route/definition/parser_test.rb +0 -112
- data/vendor/rails/actionpack/test/journey/route/definition/scanner_test.rb +0 -71
- data/vendor/rails/actionpack/test/journey/route_test.rb +0 -113
- data/vendor/rails/actionpack/test/journey/router/utils_test.rb +0 -48
- data/vendor/rails/actionpack/test/journey/router_test.rb +0 -544
- data/vendor/rails/actionpack/test/journey/routes_test.rb +0 -62
- data/vendor/rails/actionpack/test/lib/controller/fake_controllers.rb +0 -37
- data/vendor/rails/actionpack/test/lib/controller/fake_models.rb +0 -79
- data/vendor/rails/actionpack/test/routing/helper_test.rb +0 -33
- data/vendor/rails/actionview/CHANGELOG.md +0 -122
- data/vendor/rails/actionview/MIT-LICENSE +0 -21
- data/vendor/rails/actionview/README.rdoc +0 -38
- data/vendor/rails/actionview/RUNNING_UJS_TESTS.rdoc +0 -8
- data/vendor/rails/actionview/RUNNING_UNIT_TESTS.rdoc +0 -26
- data/vendor/rails/actionview/Rakefile +0 -136
- data/vendor/rails/actionview/actionview.gemspec +0 -38
- data/vendor/rails/actionview/app/assets/javascripts/MIT-LICENSE +0 -20
- data/vendor/rails/actionview/app/assets/javascripts/README.md +0 -55
- data/vendor/rails/actionview/app/assets/javascripts/rails-ujs.coffee +0 -39
- data/vendor/rails/actionview/app/assets/javascripts/rails-ujs/BANNER.js +0 -5
- data/vendor/rails/actionview/app/assets/javascripts/rails-ujs/features/confirm.coffee +0 -26
- data/vendor/rails/actionview/app/assets/javascripts/rails-ujs/features/disable.coffee +0 -82
- data/vendor/rails/actionview/app/assets/javascripts/rails-ujs/features/method.coffee +0 -34
- data/vendor/rails/actionview/app/assets/javascripts/rails-ujs/features/remote.coffee +0 -90
- data/vendor/rails/actionview/app/assets/javascripts/rails-ujs/start.coffee +0 -71
- data/vendor/rails/actionview/app/assets/javascripts/rails-ujs/utils/ajax.coffee +0 -97
- data/vendor/rails/actionview/app/assets/javascripts/rails-ujs/utils/csp.coffee +0 -4
- data/vendor/rails/actionview/app/assets/javascripts/rails-ujs/utils/csrf.coffee +0 -25
- data/vendor/rails/actionview/app/assets/javascripts/rails-ujs/utils/dom.coffee +0 -35
- data/vendor/rails/actionview/app/assets/javascripts/rails-ujs/utils/event.coffee +0 -68
- data/vendor/rails/actionview/app/assets/javascripts/rails-ujs/utils/form.coffee +0 -36
- data/vendor/rails/actionview/bin/test +0 -5
- data/vendor/rails/actionview/blade.yml +0 -11
- data/vendor/rails/actionview/coffeelint.json +0 -135
- data/vendor/rails/actionview/lib/action_view.rb +0 -97
- data/vendor/rails/actionview/lib/action_view/base.rb +0 -215
- data/vendor/rails/actionview/lib/action_view/buffers.rb +0 -52
- data/vendor/rails/actionview/lib/action_view/context.rb +0 -36
- data/vendor/rails/actionview/lib/action_view/dependency_tracker.rb +0 -175
- data/vendor/rails/actionview/lib/action_view/digestor.rb +0 -136
- data/vendor/rails/actionview/lib/action_view/flows.rb +0 -76
- data/vendor/rails/actionview/lib/action_view/gem_version.rb +0 -17
- data/vendor/rails/actionview/lib/action_view/helpers.rb +0 -68
- data/vendor/rails/actionview/lib/action_view/helpers/active_model_helper.rb +0 -55
- data/vendor/rails/actionview/lib/action_view/helpers/asset_tag_helper.rb +0 -511
- data/vendor/rails/actionview/lib/action_view/helpers/asset_url_helper.rb +0 -469
- data/vendor/rails/actionview/lib/action_view/helpers/atom_feed_helper.rb +0 -205
- data/vendor/rails/actionview/lib/action_view/helpers/cache_helper.rb +0 -263
- data/vendor/rails/actionview/lib/action_view/helpers/capture_helper.rb +0 -212
- data/vendor/rails/actionview/lib/action_view/helpers/controller_helper.rb +0 -36
- data/vendor/rails/actionview/lib/action_view/helpers/csp_helper.rb +0 -24
- data/vendor/rails/actionview/lib/action_view/helpers/csrf_helper.rb +0 -35
- data/vendor/rails/actionview/lib/action_view/helpers/date_helper.rb +0 -1156
- data/vendor/rails/actionview/lib/action_view/helpers/debug_helper.rb +0 -36
- data/vendor/rails/actionview/lib/action_view/helpers/form_helper.rb +0 -2337
- data/vendor/rails/actionview/lib/action_view/helpers/form_options_helper.rb +0 -887
- data/vendor/rails/actionview/lib/action_view/helpers/form_tag_helper.rb +0 -917
- data/vendor/rails/actionview/lib/action_view/helpers/javascript_helper.rb +0 -94
- data/vendor/rails/actionview/lib/action_view/helpers/number_helper.rb +0 -451
- data/vendor/rails/actionview/lib/action_view/helpers/output_safety_helper.rb +0 -70
- data/vendor/rails/actionview/lib/action_view/helpers/record_tag_helper.rb +0 -23
- data/vendor/rails/actionview/lib/action_view/helpers/rendering_helper.rb +0 -99
- data/vendor/rails/actionview/lib/action_view/helpers/sanitize_helper.rb +0 -177
- data/vendor/rails/actionview/lib/action_view/helpers/tag_helper.rb +0 -313
- data/vendor/rails/actionview/lib/action_view/helpers/tags.rb +0 -44
- data/vendor/rails/actionview/lib/action_view/helpers/tags/base.rb +0 -192
- data/vendor/rails/actionview/lib/action_view/helpers/tags/check_box.rb +0 -66
- data/vendor/rails/actionview/lib/action_view/helpers/tags/checkable.rb +0 -18
- data/vendor/rails/actionview/lib/action_view/helpers/tags/collection_check_boxes.rb +0 -36
- data/vendor/rails/actionview/lib/action_view/helpers/tags/collection_helpers.rb +0 -119
- data/vendor/rails/actionview/lib/action_view/helpers/tags/collection_radio_buttons.rb +0 -31
- data/vendor/rails/actionview/lib/action_view/helpers/tags/collection_select.rb +0 -30
- data/vendor/rails/actionview/lib/action_view/helpers/tags/color_field.rb +0 -27
- data/vendor/rails/actionview/lib/action_view/helpers/tags/date_field.rb +0 -15
- data/vendor/rails/actionview/lib/action_view/helpers/tags/date_select.rb +0 -74
- data/vendor/rails/actionview/lib/action_view/helpers/tags/datetime_field.rb +0 -32
- data/vendor/rails/actionview/lib/action_view/helpers/tags/datetime_local_field.rb +0 -21
- data/vendor/rails/actionview/lib/action_view/helpers/tags/datetime_select.rb +0 -10
- data/vendor/rails/actionview/lib/action_view/helpers/tags/email_field.rb +0 -10
- data/vendor/rails/actionview/lib/action_view/helpers/tags/file_field.rb +0 -10
- data/vendor/rails/actionview/lib/action_view/helpers/tags/grouped_collection_select.rb +0 -31
- data/vendor/rails/actionview/lib/action_view/helpers/tags/hidden_field.rb +0 -10
- data/vendor/rails/actionview/lib/action_view/helpers/tags/label.rb +0 -81
- data/vendor/rails/actionview/lib/action_view/helpers/tags/month_field.rb +0 -15
- data/vendor/rails/actionview/lib/action_view/helpers/tags/number_field.rb +0 -20
- data/vendor/rails/actionview/lib/action_view/helpers/tags/password_field.rb +0 -14
- data/vendor/rails/actionview/lib/action_view/helpers/tags/placeholderable.rb +0 -24
- data/vendor/rails/actionview/lib/action_view/helpers/tags/radio_button.rb +0 -33
- data/vendor/rails/actionview/lib/action_view/helpers/tags/range_field.rb +0 -10
- data/vendor/rails/actionview/lib/action_view/helpers/tags/search_field.rb +0 -27
- data/vendor/rails/actionview/lib/action_view/helpers/tags/select.rb +0 -43
- data/vendor/rails/actionview/lib/action_view/helpers/tags/tel_field.rb +0 -10
- data/vendor/rails/actionview/lib/action_view/helpers/tags/text_area.rb +0 -24
- data/vendor/rails/actionview/lib/action_view/helpers/tags/text_field.rb +0 -34
- data/vendor/rails/actionview/lib/action_view/helpers/tags/time_field.rb +0 -15
- data/vendor/rails/actionview/lib/action_view/helpers/tags/time_select.rb +0 -10
- data/vendor/rails/actionview/lib/action_view/helpers/tags/time_zone_select.rb +0 -22
- data/vendor/rails/actionview/lib/action_view/helpers/tags/translator.rb +0 -44
- data/vendor/rails/actionview/lib/action_view/helpers/tags/url_field.rb +0 -10
- data/vendor/rails/actionview/lib/action_view/helpers/tags/week_field.rb +0 -15
- data/vendor/rails/actionview/lib/action_view/helpers/text_helper.rb +0 -486
- data/vendor/rails/actionview/lib/action_view/helpers/translation_helper.rb +0 -141
- data/vendor/rails/actionview/lib/action_view/helpers/url_helper.rb +0 -676
- data/vendor/rails/actionview/lib/action_view/layouts.rb +0 -433
- data/vendor/rails/actionview/lib/action_view/locale/en.yml +0 -56
- data/vendor/rails/actionview/lib/action_view/log_subscriber.rb +0 -96
- data/vendor/rails/actionview/lib/action_view/lookup_context.rb +0 -274
- data/vendor/rails/actionview/lib/action_view/model_naming.rb +0 -14
- data/vendor/rails/actionview/lib/action_view/path_set.rb +0 -100
- data/vendor/rails/actionview/lib/action_view/railtie.rb +0 -82
- data/vendor/rails/actionview/lib/action_view/record_identifier.rb +0 -112
- data/vendor/rails/actionview/lib/action_view/renderer/abstract_renderer.rb +0 -55
- data/vendor/rails/actionview/lib/action_view/renderer/partial_renderer.rb +0 -552
- data/vendor/rails/actionview/lib/action_view/renderer/partial_renderer/collection_caching.rb +0 -57
- data/vendor/rails/actionview/lib/action_view/renderer/renderer.rb +0 -56
- data/vendor/rails/actionview/lib/action_view/renderer/streaming_template_renderer.rb +0 -105
- data/vendor/rails/actionview/lib/action_view/renderer/template_renderer.rb +0 -102
- data/vendor/rails/actionview/lib/action_view/rendering.rb +0 -151
- data/vendor/rails/actionview/lib/action_view/routing_url_for.rb +0 -145
- data/vendor/rails/actionview/lib/action_view/tasks/cache_digests.rake +0 -25
- data/vendor/rails/actionview/lib/action_view/template.rb +0 -361
- data/vendor/rails/actionview/lib/action_view/template/error.rb +0 -141
- data/vendor/rails/actionview/lib/action_view/template/handlers.rb +0 -66
- data/vendor/rails/actionview/lib/action_view/template/handlers/builder.rb +0 -25
- data/vendor/rails/actionview/lib/action_view/template/handlers/erb.rb +0 -74
- data/vendor/rails/actionview/lib/action_view/template/handlers/erb/erubi.rb +0 -83
- data/vendor/rails/actionview/lib/action_view/template/handlers/html.rb +0 -11
- data/vendor/rails/actionview/lib/action_view/template/handlers/raw.rb +0 -11
- data/vendor/rails/actionview/lib/action_view/template/html.rb +0 -34
- data/vendor/rails/actionview/lib/action_view/template/resolver.rb +0 -391
- data/vendor/rails/actionview/lib/action_view/template/text.rb +0 -33
- data/vendor/rails/actionview/lib/action_view/template/types.rb +0 -57
- data/vendor/rails/actionview/lib/action_view/test_case.rb +0 -300
- data/vendor/rails/actionview/lib/action_view/testing/resolvers.rb +0 -54
- data/vendor/rails/actionview/lib/action_view/version.rb +0 -10
- data/vendor/rails/actionview/lib/action_view/view_paths.rb +0 -105
- data/vendor/rails/actionview/package.json +0 -36
- data/vendor/rails/actionview/test/abstract_unit.rb +0 -236
- data/vendor/rails/actionview/test/actionpack/abstract/abstract_controller_test.rb +0 -292
- data/vendor/rails/actionview/test/actionpack/abstract/helper_test.rb +0 -128
- data/vendor/rails/actionview/test/actionpack/abstract/layouts_test.rb +0 -568
- data/vendor/rails/actionview/test/actionpack/abstract/render_test.rb +0 -103
- data/vendor/rails/actionview/test/actionpack/abstract/views/abstract_controller/testing/me3/formatted.html.erb +0 -1
- data/vendor/rails/actionview/test/actionpack/abstract/views/abstract_controller/testing/me3/index.erb +0 -1
- data/vendor/rails/actionview/test/actionpack/abstract/views/abstract_controller/testing/me4/index.erb +0 -1
- data/vendor/rails/actionview/test/actionpack/abstract/views/action_with_ivars.erb +0 -1
- data/vendor/rails/actionview/test/actionpack/abstract/views/helper_test.erb +0 -1
- data/vendor/rails/actionview/test/actionpack/abstract/views/index.erb +0 -1
- data/vendor/rails/actionview/test/actionpack/abstract/views/layouts/abstract_controller/testing/me4.erb +0 -1
- data/vendor/rails/actionview/test/actionpack/abstract/views/layouts/application.erb +0 -1
- data/vendor/rails/actionview/test/actionpack/abstract/views/naked_render.erb +0 -1
- data/vendor/rails/actionview/test/actionpack/controller/capture_test.rb +0 -83
- data/vendor/rails/actionview/test/actionpack/controller/layout_test.rb +0 -270
- data/vendor/rails/actionview/test/actionpack/controller/render_test.rb +0 -1294
- data/vendor/rails/actionview/test/actionpack/controller/view_paths_test.rb +0 -174
- data/vendor/rails/actionview/test/active_record_unit.rb +0 -92
- data/vendor/rails/actionview/test/activerecord/controller_runtime_test.rb +0 -95
- data/vendor/rails/actionview/test/activerecord/debug_helper_test.rb +0 -19
- data/vendor/rails/actionview/test/activerecord/form_helper_activerecord_test.rb +0 -90
- data/vendor/rails/actionview/test/activerecord/polymorphic_routes_test.rb +0 -780
- data/vendor/rails/actionview/test/activerecord/relation_cache_test.rb +0 -23
- data/vendor/rails/actionview/test/activerecord/render_partial_with_record_identification_test.rb +0 -188
- data/vendor/rails/actionview/test/fixtures/_top_level_partial.html.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/_top_level_partial_only.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/actionpack/bad_customers/_bad_customer.html.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/actionpack/customers/_customer.html.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/actionpack/fun/games/_form.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/actionpack/fun/games/hello_world.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/actionpack/good_customers/_good_customer.html.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/actionpack/hello.html +0 -1
- data/vendor/rails/actionview/test/fixtures/actionpack/layout_tests/alt/layouts/alt.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/actionpack/layout_tests/layouts/controller_name_space/nested.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/actionpack/layout_tests/layouts/item.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/actionpack/layout_tests/layouts/layout_test.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/actionpack/layout_tests/layouts/multiple_extensions.html.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/actionpack/layout_tests/layouts/symlinked/symlinked_layout.erb +0 -5
- data/vendor/rails/actionview/test/fixtures/actionpack/layout_tests/layouts/third_party_template_library.mab +0 -1
- data/vendor/rails/actionview/test/fixtures/actionpack/layout_tests/views/goodbye.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/actionpack/layout_tests/views/hello.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/actionpack/layouts/_column.html.erb +0 -2
- data/vendor/rails/actionview/test/fixtures/actionpack/layouts/_customers.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/actionpack/layouts/_partial_and_yield.erb +0 -2
- data/vendor/rails/actionview/test/fixtures/actionpack/layouts/_yield_only.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/actionpack/layouts/_yield_with_params.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/actionpack/layouts/block_with_layout.erb +0 -3
- data/vendor/rails/actionview/test/fixtures/actionpack/layouts/builder.builder +0 -3
- data/vendor/rails/actionview/test/fixtures/actionpack/layouts/partial_with_layout.erb +0 -3
- data/vendor/rails/actionview/test/fixtures/actionpack/layouts/standard.html.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/actionpack/layouts/standard.text.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/actionpack/layouts/streaming.erb +0 -4
- data/vendor/rails/actionview/test/fixtures/actionpack/layouts/talk_from_action.erb +0 -2
- data/vendor/rails/actionview/test/fixtures/actionpack/layouts/with_html_partial.html.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/actionpack/layouts/xhr.html.erb +0 -2
- data/vendor/rails/actionview/test/fixtures/actionpack/layouts/yield.erb +0 -2
- data/vendor/rails/actionview/test/fixtures/actionpack/layouts/yield_with_render_inline_inside.erb +0 -2
- data/vendor/rails/actionview/test/fixtures/actionpack/layouts/yield_with_render_partial_inside.erb +0 -2
- data/vendor/rails/actionview/test/fixtures/actionpack/quiz/questions/_question.html.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/actionpack/shared.html.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/actionpack/test/_changing_priority.html.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/actionpack/test/_changing_priority.json.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/actionpack/test/_counter.html.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/actionpack/test/_customer.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/actionpack/test/_customer_counter.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/actionpack/test/_customer_counter_with_as.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/actionpack/test/_customer_greeting.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/actionpack/test/_customer_iteration.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/actionpack/test/_customer_iteration_with_as.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/actionpack/test/_customer_with_var.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/actionpack/test/_directory/_partial_with_locales.html.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/actionpack/test/_first_json_partial.json.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/actionpack/test/_form.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/actionpack/test/_hash_greeting.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/actionpack/test/_hash_object.erb +0 -2
- data/vendor/rails/actionview/test/fixtures/actionpack/test/_hello.builder +0 -1
- data/vendor/rails/actionview/test/fixtures/actionpack/test/_json_change_priority.json.erb +0 -0
- data/vendor/rails/actionview/test/fixtures/actionpack/test/_labelling_form.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/actionpack/test/_layout_for_partial.html.erb +0 -3
- data/vendor/rails/actionview/test/fixtures/actionpack/test/_partial.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/actionpack/test/_partial.html.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/actionpack/test/_partial.js.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/actionpack/test/_partial_for_use_in_layout.html.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/actionpack/test/_partial_html_erb.html.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/actionpack/test/_partial_name_local_variable.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/actionpack/test/_partial_only.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/actionpack/test/_partial_only_html.html +0 -1
- data/vendor/rails/actionview/test/fixtures/actionpack/test/_partial_with_partial.erb +0 -2
- data/vendor/rails/actionview/test/fixtures/actionpack/test/_person.erb +0 -2
- data/vendor/rails/actionview/test/fixtures/actionpack/test/_raise_indentation.html.erb +0 -13
- data/vendor/rails/actionview/test/fixtures/actionpack/test/_second_json_partial.json.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/actionpack/test/action_talk_to_layout.erb +0 -2
- data/vendor/rails/actionview/test/fixtures/actionpack/test/calling_partial_with_layout.html.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/actionpack/test/capturing.erb +0 -4
- data/vendor/rails/actionview/test/fixtures/actionpack/test/change_priority.html.erb +0 -2
- data/vendor/rails/actionview/test/fixtures/actionpack/test/content_for.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/actionpack/test/content_for_concatenated.erb +0 -3
- data/vendor/rails/actionview/test/fixtures/actionpack/test/content_for_with_parameter.erb +0 -2
- data/vendor/rails/actionview/test/fixtures/actionpack/test/dot.directory/render_file_with_ivar.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/actionpack/test/formatted_html_erb.html.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/actionpack/test/formatted_xml_erb.builder +0 -1
- data/vendor/rails/actionview/test/fixtures/actionpack/test/formatted_xml_erb.html.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/actionpack/test/formatted_xml_erb.xml.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/actionpack/test/greeting.html.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/actionpack/test/greeting.xml.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/actionpack/test/hello,world.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/actionpack/test/hello.builder +0 -4
- data/vendor/rails/actionview/test/fixtures/actionpack/test/hello/hello.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/actionpack/test/hello_world.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/actionpack/test/hello_world_container.builder +0 -3
- data/vendor/rails/actionview/test/fixtures/actionpack/test/hello_world_from_rxml.builder +0 -3
- data/vendor/rails/actionview/test/fixtures/actionpack/test/hello_world_with_layout_false.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/actionpack/test/hello_world_with_partial.html.erb +0 -2
- data/vendor/rails/actionview/test/fixtures/actionpack/test/hello_xml_world.builder +0 -11
- data/vendor/rails/actionview/test/fixtures/actionpack/test/html_template.html.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/actionpack/test/hyphen-ated.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/actionpack/test/implicit_content_type.atom.builder +0 -2
- data/vendor/rails/actionview/test/fixtures/actionpack/test/list.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/actionpack/test/non_erb_block_content_for.builder +0 -4
- data/vendor/rails/actionview/test/fixtures/actionpack/test/potential_conflicts.erb +0 -4
- data/vendor/rails/actionview/test/fixtures/actionpack/test/proper_block_detection.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/actionpack/test/render_file_from_template.html.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/actionpack/test/render_file_with_ivar.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/actionpack/test/render_file_with_locals.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/actionpack/test/render_file_with_locals_and_default.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/actionpack/test/render_implicit_html_template_from_xhr_request.da.html.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/actionpack/test/render_implicit_html_template_from_xhr_request.html.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/actionpack/test/render_implicit_js_template_without_layout.js.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/actionpack/test/render_partial_inside_directory.html.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/actionpack/test/render_to_string_test.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/actionpack/test/render_two_partials.html.erb +0 -2
- data/vendor/rails/actionview/test/fixtures/actionpack/test/using_layout_around_block.html.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/actionpack/test/with_html_partial.html.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/actionpack/test/with_partial.html.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/actionpack/test/with_partial.text.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/actionpack/test/with_xml_template.html.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/comments/empty.de.html.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/comments/empty.html+grid.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/comments/empty.html.builder +0 -1
- data/vendor/rails/actionview/test/fixtures/comments/empty.html.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/comments/empty.xml.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/companies.yml +0 -24
- data/vendor/rails/actionview/test/fixtures/company.rb +0 -11
- data/vendor/rails/actionview/test/fixtures/custom_pattern/another.html.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/custom_pattern/html/another.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/custom_pattern/html/path.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/customers/_customer.html.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/customers/_customer.xml.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/db_definitions/sqlite.sql +0 -49
- data/vendor/rails/actionview/test/fixtures/developer.rb +0 -8
- data/vendor/rails/actionview/test/fixtures/developers.yml +0 -21
- data/vendor/rails/actionview/test/fixtures/developers/_developer.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/developers_projects.yml +0 -13
- data/vendor/rails/actionview/test/fixtures/digestor/api/comments/_comment.json.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/digestor/api/comments/_comments.json.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/digestor/comments/_comment.html.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/digestor/comments/_comments.html.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/digestor/comments/show.js.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/digestor/events/_completed.html.erb +0 -0
- data/vendor/rails/actionview/test/fixtures/digestor/events/_event.html.erb +0 -0
- data/vendor/rails/actionview/test/fixtures/digestor/events/index.html.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/digestor/level/_recursion.html.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/digestor/level/below/_header.html.erb +0 -0
- data/vendor/rails/actionview/test/fixtures/digestor/level/below/index.html.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/digestor/level/recursion.html.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/digestor/messages/_form.html.erb +0 -0
- data/vendor/rails/actionview/test/fixtures/digestor/messages/_header.html.erb +0 -0
- data/vendor/rails/actionview/test/fixtures/digestor/messages/_message.html.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/digestor/messages/actions/_move.html.erb +0 -0
- data/vendor/rails/actionview/test/fixtures/digestor/messages/edit.html.erb +0 -5
- data/vendor/rails/actionview/test/fixtures/digestor/messages/index.html.erb +0 -2
- data/vendor/rails/actionview/test/fixtures/digestor/messages/new.html+iphone.erb +0 -15
- data/vendor/rails/actionview/test/fixtures/digestor/messages/peek.html.erb +0 -2
- data/vendor/rails/actionview/test/fixtures/digestor/messages/show.html.erb +0 -14
- data/vendor/rails/actionview/test/fixtures/digestor/messages/thread.json.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/fun/games/_game.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/fun/games/hello_world.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/fun/serious/games/_game.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/games/_game.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/good_customers/_good_customer.html.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/helpers/abc_helper.rb +0 -5
- data/vendor/rails/actionview/test/fixtures/helpers/helpery_test_helper.rb +0 -7
- data/vendor/rails/actionview/test/fixtures/helpers_missing/invalid_require_helper.rb +0 -6
- data/vendor/rails/actionview/test/fixtures/layout_tests/alt/hello.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/layouts/_column.html.erb +0 -2
- data/vendor/rails/actionview/test/fixtures/layouts/_customers.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/layouts/_partial_and_yield.erb +0 -2
- data/vendor/rails/actionview/test/fixtures/layouts/_yield_only.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/layouts/_yield_with_params.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/layouts/render_partial_html.erb +0 -2
- data/vendor/rails/actionview/test/fixtures/layouts/streaming.erb +0 -4
- data/vendor/rails/actionview/test/fixtures/layouts/streaming_with_capture.erb +0 -6
- data/vendor/rails/actionview/test/fixtures/layouts/streaming_with_locale.erb +0 -2
- data/vendor/rails/actionview/test/fixtures/layouts/yield.erb +0 -2
- data/vendor/rails/actionview/test/fixtures/layouts/yield_with_render_inline_inside.erb +0 -2
- data/vendor/rails/actionview/test/fixtures/layouts/yield_with_render_partial_inside.erb +0 -2
- data/vendor/rails/actionview/test/fixtures/mascot.rb +0 -5
- data/vendor/rails/actionview/test/fixtures/mascots.yml +0 -4
- data/vendor/rails/actionview/test/fixtures/mascots/_mascot.html.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/override/test/hello_world.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/override2/layouts/test/sub.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/plain_text.raw +0 -1
- data/vendor/rails/actionview/test/fixtures/plain_text_with_characters.raw +0 -1
- data/vendor/rails/actionview/test/fixtures/project.rb +0 -9
- data/vendor/rails/actionview/test/fixtures/projects.yml +0 -7
- data/vendor/rails/actionview/test/fixtures/projects/_project.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/public/elsewhere/cools.js +0 -1
- data/vendor/rails/actionview/test/fixtures/public/elsewhere/file.css +0 -1
- data/vendor/rails/actionview/test/fixtures/public/foo/baz.css +0 -3
- data/vendor/rails/actionview/test/fixtures/public/javascripts/application.js +0 -1
- data/vendor/rails/actionview/test/fixtures/public/javascripts/bank.js +0 -1
- data/vendor/rails/actionview/test/fixtures/public/javascripts/common.javascript +0 -1
- data/vendor/rails/actionview/test/fixtures/public/javascripts/controls.js +0 -1
- data/vendor/rails/actionview/test/fixtures/public/javascripts/dragdrop.js +0 -1
- data/vendor/rails/actionview/test/fixtures/public/javascripts/effects.js +0 -1
- data/vendor/rails/actionview/test/fixtures/public/javascripts/prototype.js +0 -1
- data/vendor/rails/actionview/test/fixtures/public/javascripts/robber.js +0 -1
- data/vendor/rails/actionview/test/fixtures/public/javascripts/subdir/subdir.js +0 -1
- data/vendor/rails/actionview/test/fixtures/public/javascripts/version.1.0.js +0 -1
- data/vendor/rails/actionview/test/fixtures/public/stylesheets/bank.css +0 -1
- data/vendor/rails/actionview/test/fixtures/public/stylesheets/random.styles +0 -1
- data/vendor/rails/actionview/test/fixtures/public/stylesheets/robber.css +0 -1
- data/vendor/rails/actionview/test/fixtures/public/stylesheets/subdir/subdir.css +0 -1
- data/vendor/rails/actionview/test/fixtures/public/stylesheets/version.1.0.css +0 -1
- data/vendor/rails/actionview/test/fixtures/replies.yml +0 -15
- data/vendor/rails/actionview/test/fixtures/replies/_reply.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/reply.rb +0 -9
- data/vendor/rails/actionview/test/fixtures/respond_to/using_defaults_with_all.html.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/ruby_template.ruby +0 -2
- data/vendor/rails/actionview/test/fixtures/shared.html.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/test/_200.html.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/test/_FooBar.html.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/test/_a-in.html.erb +0 -0
- data/vendor/rails/actionview/test/fixtures/test/_b_layout_for_partial.html.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/test/_b_layout_for_partial_with_object.html.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/test/_b_layout_for_partial_with_object_counter.html.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/test/_builder_tag_nested_in_content_tag.erb +0 -3
- data/vendor/rails/actionview/test/fixtures/test/_cached_customer.erb +0 -3
- data/vendor/rails/actionview/test/fixtures/test/_cached_customer_as.erb +0 -3
- data/vendor/rails/actionview/test/fixtures/test/_cached_nested_cached_customer.erb +0 -3
- data/vendor/rails/actionview/test/fixtures/test/_changing_priority.html.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/test/_changing_priority.json.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/test/_content_tag_nested_in_content_tag.erb +0 -3
- data/vendor/rails/actionview/test/fixtures/test/_counter.html.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/test/_customer.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/test/_customer.mobile.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/test/_customer_greeting.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/test/_customer_with_var.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/test/_directory/_partial_with_locales.html.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/test/_first_json_partial.json.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/test/_from_helper.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/test/_json_change_priority.json.erb +0 -0
- data/vendor/rails/actionview/test/fixtures/test/_klass.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/test/_label_with_block.erb +0 -4
- data/vendor/rails/actionview/test/fixtures/test/_layout_for_block_with_args.html.erb +0 -3
- data/vendor/rails/actionview/test/fixtures/test/_layout_for_partial.html.erb +0 -3
- data/vendor/rails/actionview/test/fixtures/test/_layout_with_partial_and_yield.html.erb +0 -4
- data/vendor/rails/actionview/test/fixtures/test/_local_inspector.html.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/test/_nested_cached_customer.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/test/_object_inspector.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/test/_one.html.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/test/_partial.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/test/_partial.html.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/test/_partial.js.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/test/_partial_for_use_in_layout.html.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/test/_partial_iteration_1.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/test/_partial_iteration_2.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/test/_partial_name_in_local_assigns.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/test/_partial_name_local_variable.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/test/_partial_only.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/test/_partial_shortcut_with_block_content.html.erb +0 -3
- data/vendor/rails/actionview/test/fixtures/test/_partial_with_layout.erb +0 -2
- data/vendor/rails/actionview/test/fixtures/test/_partial_with_layout_block_content.erb +0 -4
- data/vendor/rails/actionview/test/fixtures/test/_partial_with_layout_block_partial.erb +0 -4
- data/vendor/rails/actionview/test/fixtures/test/_partial_with_only_html_version.html.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/test/_partial_with_partial.erb +0 -2
- data/vendor/rails/actionview/test/fixtures/test/_partial_with_variants.html+grid.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/test/_partialhtml.html +0 -1
- data/vendor/rails/actionview/test/fixtures/test/_raise.html.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/test/_raise_indentation.html.erb +0 -13
- data/vendor/rails/actionview/test/fixtures/test/_second_json_partial.json.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/test/_two.html.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/test/_utf8_partial.html.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/test/_utf8_partial_magic.html.erb +0 -2
- data/vendor/rails/actionview/test/fixtures/test/_/360/237/215/243.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/test/basic.html.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/test/calling_partial_with_layout.html.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/test/change_priority.html.erb +0 -2
- data/vendor/rails/actionview/test/fixtures/test/dont_pick_me +0 -1
- data/vendor/rails/actionview/test/fixtures/test/dot.directory/render_file_with_ivar.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/test/greeting.xml.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/test/hello.builder +0 -4
- data/vendor/rails/actionview/test/fixtures/test/hello/hello.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/test/hello_world.da.html.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/test/hello_world.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/test/hello_world.erb~ +0 -1
- data/vendor/rails/actionview/test/fixtures/test/hello_world.html+phone.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/test/hello_world.pt-BR.html.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/test/hello_world.text+phone.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/test/hello_world_with_partial.html.erb +0 -2
- data/vendor/rails/actionview/test/fixtures/test/html_template.html.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/test/layout_render_file.erb +0 -2
- data/vendor/rails/actionview/test/fixtures/test/layout_render_object.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/test/list.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/test/malformed/malformed.en.html.erb~ +0 -1
- data/vendor/rails/actionview/test/fixtures/test/malformed/malformed.erb~ +0 -1
- data/vendor/rails/actionview/test/fixtures/test/malformed/malformed.html.erb~ +0 -1
- data/vendor/rails/actionview/test/fixtures/test/malformed/malformed~ +0 -1
- data/vendor/rails/actionview/test/fixtures/test/nested_layout.erb +0 -3
- data/vendor/rails/actionview/test/fixtures/test/nested_streaming.erb +0 -3
- data/vendor/rails/actionview/test/fixtures/test/nil_return.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/test/one.html.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/test/render_file_inspect_local_assigns.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/test/render_file_instance_variable.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/test/render_file_unicode_local.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/test/render_file_with_ivar.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/test/render_file_with_locals.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/test/render_file_with_locals_and_default.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/test/render_file_with_ruby_keyword_locals.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/test/render_partial_inside_directory.html.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/test/render_two_partials.html.erb +0 -2
- data/vendor/rails/actionview/test/fixtures/test/streaming.erb +0 -3
- data/vendor/rails/actionview/test/fixtures/test/streaming_buster.erb +0 -3
- data/vendor/rails/actionview/test/fixtures/test/streaming_with_locale.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/test/sub_template_raise.html.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/test/template.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/test/test_template_with_delegation_reserved_keywords.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/test/update_element_with_capture.erb +0 -9
- data/vendor/rails/actionview/test/fixtures/test/utf8.html.erb +0 -4
- data/vendor/rails/actionview/test/fixtures/test/utf8_magic.html.erb +0 -5
- data/vendor/rails/actionview/test/fixtures/test/utf8_magic_with_bare_partial.html.erb +0 -5
- data/vendor/rails/actionview/test/fixtures/topic.rb +0 -5
- data/vendor/rails/actionview/test/fixtures/topics.yml +0 -22
- data/vendor/rails/actionview/test/fixtures/topics/_topic.html.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/translations/templates/array.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/translations/templates/default.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/translations/templates/found.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/translations/templates/missing.erb +0 -1
- data/vendor/rails/actionview/test/fixtures/with_format.json.erb +0 -1
- data/vendor/rails/actionview/test/lib/controller/fake_models.rb +0 -204
- data/vendor/rails/actionview/test/template/active_model_helper_test.rb +0 -172
- data/vendor/rails/actionview/test/template/asset_tag_helper_test.rb +0 -913
- data/vendor/rails/actionview/test/template/atom_feed_helper_test.rb +0 -375
- data/vendor/rails/actionview/test/template/capture_helper_test.rb +0 -228
- data/vendor/rails/actionview/test/template/compiled_templates_test.rb +0 -94
- data/vendor/rails/actionview/test/template/controller_helper_test.rb +0 -34
- data/vendor/rails/actionview/test/template/date_helper_i18n_test.rb +0 -166
- data/vendor/rails/actionview/test/template/date_helper_test.rb +0 -3642
- data/vendor/rails/actionview/test/template/dependency_tracker_test.rb +0 -195
- data/vendor/rails/actionview/test/template/digestor_test.rb +0 -389
- data/vendor/rails/actionview/test/template/erb/form_for_test.rb +0 -13
- data/vendor/rails/actionview/test/template/erb/helper.rb +0 -26
- data/vendor/rails/actionview/test/template/erb/tag_helper_test.rb +0 -32
- data/vendor/rails/actionview/test/template/erb_util_test.rb +0 -114
- data/vendor/rails/actionview/test/template/form_collections_helper_test.rb +0 -527
- data/vendor/rails/actionview/test/template/form_helper/form_with_test.rb +0 -2293
- data/vendor/rails/actionview/test/template/form_helper_test.rb +0 -3554
- data/vendor/rails/actionview/test/template/form_options_helper_i18n_test.rb +0 -30
- data/vendor/rails/actionview/test/template/form_options_helper_test.rb +0 -1452
- data/vendor/rails/actionview/test/template/form_tag_helper_test.rb +0 -785
- data/vendor/rails/actionview/test/template/html_test.rb +0 -19
- data/vendor/rails/actionview/test/template/javascript_helper_test.rb +0 -68
- data/vendor/rails/actionview/test/template/log_subscriber_test.rb +0 -224
- data/vendor/rails/actionview/test/template/lookup_context_test.rb +0 -289
- data/vendor/rails/actionview/test/template/number_helper_test.rb +0 -204
- data/vendor/rails/actionview/test/template/output_safety_helper_test.rb +0 -119
- data/vendor/rails/actionview/test/template/partial_iteration_test.rb +0 -35
- data/vendor/rails/actionview/test/template/record_identifier_test.rb +0 -93
- data/vendor/rails/actionview/test/template/record_tag_helper_test.rb +0 -33
- data/vendor/rails/actionview/test/template/render_test.rb +0 -725
- data/vendor/rails/actionview/test/template/resolver_cache_test.rb +0 -9
- data/vendor/rails/actionview/test/template/resolver_patterns_test.rb +0 -44
- data/vendor/rails/actionview/test/template/sanitize_helper_test.rb +0 -43
- data/vendor/rails/actionview/test/template/streaming_render_test.rb +0 -132
- data/vendor/rails/actionview/test/template/tag_helper_test.rb +0 -357
- data/vendor/rails/actionview/test/template/template_error_test.rb +0 -37
- data/vendor/rails/actionview/test/template/template_test.rb +0 -207
- data/vendor/rails/actionview/test/template/test_case_test.rb +0 -335
- data/vendor/rails/actionview/test/template/test_test.rb +0 -94
- data/vendor/rails/actionview/test/template/testing/fixture_resolver_test.rb +0 -20
- data/vendor/rails/actionview/test/template/testing/null_resolver_test.rb +0 -14
- data/vendor/rails/actionview/test/template/text_helper_test.rb +0 -535
- data/vendor/rails/actionview/test/template/text_test.rb +0 -25
- data/vendor/rails/actionview/test/template/translation_helper_test.rb +0 -238
- data/vendor/rails/actionview/test/template/url_helper_test.rb +0 -976
- data/vendor/rails/actionview/test/ujs/config.ru +0 -6
- data/vendor/rails/actionview/test/ujs/public/test/call-ajax.js +0 -26
- data/vendor/rails/actionview/test/ujs/public/test/call-remote-callbacks.js +0 -239
- data/vendor/rails/actionview/test/ujs/public/test/call-remote.js +0 -275
- data/vendor/rails/actionview/test/ujs/public/test/csrf-refresh.js +0 -24
- data/vendor/rails/actionview/test/ujs/public/test/csrf-token.js +0 -27
- data/vendor/rails/actionview/test/ujs/public/test/data-confirm.js +0 -316
- data/vendor/rails/actionview/test/ujs/public/test/data-disable-with.js +0 -394
- data/vendor/rails/actionview/test/ujs/public/test/data-disable.js +0 -322
- data/vendor/rails/actionview/test/ujs/public/test/data-method.js +0 -85
- data/vendor/rails/actionview/test/ujs/public/test/data-remote.js +0 -441
- data/vendor/rails/actionview/test/ujs/public/test/override.js +0 -56
- data/vendor/rails/actionview/test/ujs/public/test/settings.js +0 -118
- data/vendor/rails/actionview/test/ujs/public/vendor/jquery-2.2.0.js +0 -9831
- data/vendor/rails/actionview/test/ujs/public/vendor/jquery.metadata.js +0 -122
- data/vendor/rails/actionview/test/ujs/public/vendor/qunit.css +0 -237
- data/vendor/rails/actionview/test/ujs/public/vendor/qunit.js +0 -2288
- data/vendor/rails/actionview/test/ujs/server.rb +0 -86
- data/vendor/rails/actionview/test/ujs/views/layouts/application.html.erb +0 -26
- data/vendor/rails/actionview/test/ujs/views/tests/index.html.erb +0 -11
- data/vendor/rails/ci/qunit-selenium-runner.rb +0 -16
- data/vendor/rails/ci/travis.rb +0 -187
- data/vendor/rails/rails.gemspec +0 -36
- data/vendor/rails/version.rb +0 -17
@@ -1,1369 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require "abstract_unit"
|
4
|
-
require "active_support/core_ext/object/try"
|
5
|
-
require "active_support/core_ext/object/with_options"
|
6
|
-
require "active_support/core_ext/array/extract_options"
|
7
|
-
|
8
|
-
class AdminController < ResourcesController; end
|
9
|
-
class MessagesController < ResourcesController; end
|
10
|
-
class ProductsController < ResourcesController; end
|
11
|
-
class ThreadsController < ResourcesController; end
|
12
|
-
|
13
|
-
module Backoffice
|
14
|
-
class ProductsController < ResourcesController; end
|
15
|
-
class ImagesController < ResourcesController; end
|
16
|
-
|
17
|
-
module Admin
|
18
|
-
class ProductsController < ResourcesController; end
|
19
|
-
class ImagesController < ResourcesController; end
|
20
|
-
end
|
21
|
-
end
|
22
|
-
|
23
|
-
class ResourcesTest < ActionController::TestCase
|
24
|
-
def test_default_restful_routes
|
25
|
-
with_restful_routing :messages do
|
26
|
-
assert_simply_restful_for :messages
|
27
|
-
end
|
28
|
-
end
|
29
|
-
|
30
|
-
def test_override_paths_for_member_and_collection_methods
|
31
|
-
collection_methods = { rss: :get, reorder: :post, csv: :post }
|
32
|
-
member_methods = { rss: :get, atom: :get, upload: :post, fix: :post }
|
33
|
-
path_names = { new: "nuevo", rss: "canal", fix: "corrigir" }
|
34
|
-
|
35
|
-
with_restful_routing :messages,
|
36
|
-
collection: collection_methods,
|
37
|
-
member: member_methods,
|
38
|
-
path_names: path_names do
|
39
|
-
|
40
|
-
assert_restful_routes_for :messages,
|
41
|
-
collection: collection_methods,
|
42
|
-
member: member_methods,
|
43
|
-
path_names: path_names do |options|
|
44
|
-
member_methods.each do |action, method|
|
45
|
-
assert_recognizes(options.merge(action: action.to_s, id: "1"),
|
46
|
-
path: "/messages/1/#{path_names[action] || action}",
|
47
|
-
method: method)
|
48
|
-
end
|
49
|
-
|
50
|
-
collection_methods.each do |action, method|
|
51
|
-
assert_recognizes(options.merge(action: action.to_s),
|
52
|
-
path: "/messages/#{path_names[action] || action}",
|
53
|
-
method: method)
|
54
|
-
end
|
55
|
-
end
|
56
|
-
|
57
|
-
assert_restful_named_routes_for :messages,
|
58
|
-
collection: collection_methods,
|
59
|
-
member: member_methods,
|
60
|
-
path_names: path_names do |options|
|
61
|
-
|
62
|
-
collection_methods.each_key do |action|
|
63
|
-
assert_named_route "/messages/#{path_names[action] || action}", "#{action}_messages_path", action: action
|
64
|
-
end
|
65
|
-
|
66
|
-
member_methods.each_key do |action|
|
67
|
-
assert_named_route "/messages/1/#{path_names[action] || action}", "#{action}_message_path", action: action, id: "1"
|
68
|
-
end
|
69
|
-
|
70
|
-
end
|
71
|
-
end
|
72
|
-
end
|
73
|
-
|
74
|
-
def test_multiple_default_restful_routes
|
75
|
-
with_restful_routing :messages, :comments do
|
76
|
-
assert_simply_restful_for :messages
|
77
|
-
assert_simply_restful_for :comments
|
78
|
-
end
|
79
|
-
end
|
80
|
-
|
81
|
-
def test_multiple_resources_with_options
|
82
|
-
expected_options = { controller: "threads", action: "index" }
|
83
|
-
|
84
|
-
with_restful_routing :messages, :comments, expected_options.slice(:controller) do
|
85
|
-
assert_recognizes(expected_options, path: "comments")
|
86
|
-
assert_recognizes(expected_options, path: "messages")
|
87
|
-
end
|
88
|
-
end
|
89
|
-
|
90
|
-
def test_with_custom_conditions
|
91
|
-
with_restful_routing :messages, conditions: { subdomain: "app" } do
|
92
|
-
assert @routes.recognize_path("/messages", method: :get, subdomain: "app")
|
93
|
-
end
|
94
|
-
end
|
95
|
-
|
96
|
-
def test_irregular_id_with_no_constraints_should_raise_error
|
97
|
-
expected_options = { controller: "messages", action: "show", id: "1.1.1" }
|
98
|
-
|
99
|
-
with_restful_routing :messages do
|
100
|
-
assert_raise(Assertion) do
|
101
|
-
assert_recognizes(expected_options, path: "messages/1.1.1", method: :get)
|
102
|
-
end
|
103
|
-
end
|
104
|
-
end
|
105
|
-
|
106
|
-
def test_irregular_id_with_constraints_should_pass
|
107
|
-
expected_options = { controller: "messages", action: "show", id: "1.1.1" }
|
108
|
-
|
109
|
-
with_restful_routing(:messages, constraints: { id: /[0-9]\.[0-9]\.[0-9]/ }) do
|
110
|
-
assert_recognizes(expected_options, path: "messages/1.1.1", method: :get)
|
111
|
-
end
|
112
|
-
end
|
113
|
-
|
114
|
-
def test_with_path_prefix_constraints
|
115
|
-
expected_options = { controller: "messages", action: "show", thread_id: "1.1.1", id: "1" }
|
116
|
-
with_restful_routing :messages, path_prefix: "/thread/:thread_id", constraints: { thread_id: /[0-9]\.[0-9]\.[0-9]/ } do
|
117
|
-
assert_recognizes(expected_options, path: "thread/1.1.1/messages/1", method: :get)
|
118
|
-
end
|
119
|
-
end
|
120
|
-
|
121
|
-
def test_irregular_id_constraints_should_get_passed_to_member_actions
|
122
|
-
expected_options = { controller: "messages", action: "custom", id: "1.1.1" }
|
123
|
-
|
124
|
-
with_restful_routing(:messages, member: { custom: :get }, constraints: { id: /[0-9]\.[0-9]\.[0-9]/ }) do
|
125
|
-
assert_recognizes(expected_options, path: "messages/1.1.1/custom", method: :get)
|
126
|
-
end
|
127
|
-
end
|
128
|
-
|
129
|
-
def test_with_path_prefix
|
130
|
-
with_restful_routing :messages, path_prefix: "/thread/:thread_id" do
|
131
|
-
assert_simply_restful_for :messages, path_prefix: "thread/5/", options: { thread_id: "5" }
|
132
|
-
end
|
133
|
-
end
|
134
|
-
|
135
|
-
def test_multiple_with_path_prefix
|
136
|
-
with_restful_routing :messages, :comments, path_prefix: "/thread/:thread_id" do
|
137
|
-
assert_simply_restful_for :messages, path_prefix: "thread/5/", options: { thread_id: "5" }
|
138
|
-
assert_simply_restful_for :comments, path_prefix: "thread/5/", options: { thread_id: "5" }
|
139
|
-
end
|
140
|
-
end
|
141
|
-
|
142
|
-
def test_with_name_prefix
|
143
|
-
with_restful_routing :messages, as: "post_messages" do
|
144
|
-
assert_simply_restful_for :messages, name_prefix: "post_"
|
145
|
-
end
|
146
|
-
end
|
147
|
-
|
148
|
-
def test_with_collection_actions
|
149
|
-
actions = { "a" => :get, "b" => :put, "c" => :post, "d" => :delete, "e" => :patch }
|
150
|
-
|
151
|
-
with_routing do |set|
|
152
|
-
set.draw do
|
153
|
-
resources :messages do
|
154
|
-
get :a, on: :collection
|
155
|
-
put :b, on: :collection
|
156
|
-
post :c, on: :collection
|
157
|
-
delete :d, on: :collection
|
158
|
-
patch :e, on: :collection
|
159
|
-
end
|
160
|
-
end
|
161
|
-
|
162
|
-
assert_restful_routes_for :messages do |options|
|
163
|
-
actions.each do |action, method|
|
164
|
-
assert_recognizes(options.merge(action: action), path: "/messages/#{action}", method: method)
|
165
|
-
end
|
166
|
-
end
|
167
|
-
|
168
|
-
assert_restful_named_routes_for :messages do
|
169
|
-
actions.each_key do |action|
|
170
|
-
assert_named_route "/messages/#{action}", "#{action}_messages_path", action: action
|
171
|
-
end
|
172
|
-
end
|
173
|
-
end
|
174
|
-
end
|
175
|
-
|
176
|
-
def test_with_collection_actions_and_name_prefix
|
177
|
-
actions = { "a" => :get, "b" => :put, "c" => :post, "d" => :delete, "e" => :patch }
|
178
|
-
|
179
|
-
with_routing do |set|
|
180
|
-
set.draw do
|
181
|
-
scope "/threads/:thread_id" do
|
182
|
-
resources :messages, as: "thread_messages" do
|
183
|
-
get :a, on: :collection
|
184
|
-
put :b, on: :collection
|
185
|
-
post :c, on: :collection
|
186
|
-
delete :d, on: :collection
|
187
|
-
patch :e, on: :collection
|
188
|
-
end
|
189
|
-
end
|
190
|
-
end
|
191
|
-
|
192
|
-
assert_restful_routes_for :messages, path_prefix: "threads/1/", name_prefix: "thread_", options: { thread_id: "1" } do |options|
|
193
|
-
actions.each do |action, method|
|
194
|
-
assert_recognizes(options.merge(action: action), path: "/threads/1/messages/#{action}", method: method)
|
195
|
-
end
|
196
|
-
end
|
197
|
-
|
198
|
-
assert_restful_named_routes_for :messages, path_prefix: "threads/1/", name_prefix: "thread_", options: { thread_id: "1" } do
|
199
|
-
actions.each_key do |action|
|
200
|
-
assert_named_route "/threads/1/messages/#{action}", "#{action}_thread_messages_path", action: action
|
201
|
-
end
|
202
|
-
end
|
203
|
-
end
|
204
|
-
end
|
205
|
-
|
206
|
-
def test_with_collection_actions_and_name_prefix_and_member_action_with_same_name
|
207
|
-
actions = { "a" => :get }
|
208
|
-
|
209
|
-
with_routing do |set|
|
210
|
-
set.draw do
|
211
|
-
scope "/threads/:thread_id" do
|
212
|
-
resources :messages, as: "thread_messages" do
|
213
|
-
get :a, on: :collection
|
214
|
-
get :a, on: :member
|
215
|
-
end
|
216
|
-
end
|
217
|
-
end
|
218
|
-
|
219
|
-
assert_restful_routes_for :messages, path_prefix: "threads/1/", name_prefix: "thread_", options: { thread_id: "1" } do |options|
|
220
|
-
actions.each do |action, method|
|
221
|
-
assert_recognizes(options.merge(action: action), path: "/threads/1/messages/#{action}", method: method)
|
222
|
-
end
|
223
|
-
end
|
224
|
-
|
225
|
-
assert_restful_named_routes_for :messages, path_prefix: "threads/1/", name_prefix: "thread_", options: { thread_id: "1" } do
|
226
|
-
actions.each_key do |action|
|
227
|
-
assert_named_route "/threads/1/messages/#{action}", "#{action}_thread_messages_path", action: action
|
228
|
-
end
|
229
|
-
end
|
230
|
-
end
|
231
|
-
end
|
232
|
-
|
233
|
-
def test_with_collection_action_and_name_prefix_and_formatted
|
234
|
-
actions = { "a" => :get, "b" => :put, "c" => :post, "d" => :delete, "e" => :patch }
|
235
|
-
|
236
|
-
with_routing do |set|
|
237
|
-
set.draw do
|
238
|
-
scope "/threads/:thread_id" do
|
239
|
-
resources :messages, as: "thread_messages" do
|
240
|
-
get :a, on: :collection
|
241
|
-
put :b, on: :collection
|
242
|
-
post :c, on: :collection
|
243
|
-
delete :d, on: :collection
|
244
|
-
patch :e, on: :collection
|
245
|
-
end
|
246
|
-
end
|
247
|
-
end
|
248
|
-
|
249
|
-
assert_restful_routes_for :messages, path_prefix: "threads/1/", name_prefix: "thread_", options: { thread_id: "1" } do |options|
|
250
|
-
actions.each do |action, method|
|
251
|
-
assert_recognizes(options.merge(action: action, format: "xml"), path: "/threads/1/messages/#{action}.xml", method: method)
|
252
|
-
end
|
253
|
-
end
|
254
|
-
|
255
|
-
assert_restful_named_routes_for :messages, path_prefix: "threads/1/", name_prefix: "thread_", options: { thread_id: "1" } do
|
256
|
-
actions.each_key do |action|
|
257
|
-
assert_named_route "/threads/1/messages/#{action}.xml", "#{action}_thread_messages_path", action: action, format: "xml"
|
258
|
-
end
|
259
|
-
end
|
260
|
-
end
|
261
|
-
end
|
262
|
-
|
263
|
-
def test_with_member_action
|
264
|
-
[:patch, :put, :post].each do |method|
|
265
|
-
with_restful_routing :messages, member: { mark: method } do
|
266
|
-
mark_options = { action: "mark", id: "1" }
|
267
|
-
mark_path = "/messages/1/mark"
|
268
|
-
assert_restful_routes_for :messages do |options|
|
269
|
-
assert_recognizes(options.merge(mark_options), path: mark_path, method: method)
|
270
|
-
end
|
271
|
-
|
272
|
-
assert_restful_named_routes_for :messages do
|
273
|
-
assert_named_route mark_path, :mark_message_path, mark_options
|
274
|
-
end
|
275
|
-
end
|
276
|
-
end
|
277
|
-
end
|
278
|
-
|
279
|
-
def test_with_member_action_and_requirement
|
280
|
-
expected_options = { controller: "messages", action: "mark", id: "1.1.1" }
|
281
|
-
|
282
|
-
with_restful_routing(:messages, constraints: { id: /[0-9]\.[0-9]\.[0-9]/ }, member: { mark: :get }) do
|
283
|
-
assert_recognizes(expected_options, path: "messages/1.1.1/mark", method: :get)
|
284
|
-
end
|
285
|
-
end
|
286
|
-
|
287
|
-
def test_member_when_override_paths_for_default_restful_actions_with
|
288
|
-
[:patch, :put, :post].each do |method|
|
289
|
-
with_restful_routing :messages, member: { mark: method }, path_names: { new: "nuevo" } do
|
290
|
-
mark_options = { action: "mark", id: "1", controller: "messages" }
|
291
|
-
mark_path = "/messages/1/mark"
|
292
|
-
|
293
|
-
assert_restful_routes_for :messages, path_names: { new: "nuevo" } do |options|
|
294
|
-
assert_recognizes(options.merge(mark_options), path: mark_path, method: method)
|
295
|
-
end
|
296
|
-
|
297
|
-
assert_restful_named_routes_for :messages, path_names: { new: "nuevo" } do
|
298
|
-
assert_named_route mark_path, :mark_message_path, mark_options
|
299
|
-
end
|
300
|
-
end
|
301
|
-
end
|
302
|
-
end
|
303
|
-
|
304
|
-
def test_with_two_member_actions_with_same_method
|
305
|
-
[:patch, :put, :post].each do |method|
|
306
|
-
with_routing do |set|
|
307
|
-
set.draw do
|
308
|
-
resources :messages do
|
309
|
-
member do
|
310
|
-
match :mark, via: method
|
311
|
-
match :unmark, via: method
|
312
|
-
end
|
313
|
-
end
|
314
|
-
end
|
315
|
-
|
316
|
-
%w(mark unmark).each do |action|
|
317
|
-
action_options = { action: action, id: "1" }
|
318
|
-
action_path = "/messages/1/#{action}"
|
319
|
-
assert_restful_routes_for :messages do |options|
|
320
|
-
assert_recognizes(options.merge(action_options), path: action_path, method: method)
|
321
|
-
end
|
322
|
-
|
323
|
-
assert_restful_named_routes_for :messages do
|
324
|
-
assert_named_route action_path, "#{action}_message_path".to_sym, action_options
|
325
|
-
end
|
326
|
-
end
|
327
|
-
end
|
328
|
-
end
|
329
|
-
end
|
330
|
-
|
331
|
-
def test_array_as_collection_or_member_method_value
|
332
|
-
with_routing do |set|
|
333
|
-
set.draw do
|
334
|
-
resources :messages do
|
335
|
-
collection do
|
336
|
-
match :search, via: [:post, :get]
|
337
|
-
end
|
338
|
-
|
339
|
-
member do
|
340
|
-
match :toggle, via: [:post, :get]
|
341
|
-
end
|
342
|
-
end
|
343
|
-
end
|
344
|
-
|
345
|
-
assert_restful_routes_for :messages do |options|
|
346
|
-
[:get, :post].each do |method|
|
347
|
-
assert_recognizes(options.merge(action: "search"), path: "/messages/search", method: method)
|
348
|
-
end
|
349
|
-
[:get, :post].each do |method|
|
350
|
-
assert_recognizes(options.merge(action: "toggle", id: "1"), path: "/messages/1/toggle", method: method)
|
351
|
-
end
|
352
|
-
end
|
353
|
-
end
|
354
|
-
end
|
355
|
-
|
356
|
-
def test_with_new_action
|
357
|
-
with_routing do |set|
|
358
|
-
set.draw do
|
359
|
-
resources :messages do
|
360
|
-
post :preview, on: :new
|
361
|
-
end
|
362
|
-
end
|
363
|
-
|
364
|
-
preview_options = { action: "preview" }
|
365
|
-
preview_path = "/messages/new/preview"
|
366
|
-
assert_restful_routes_for :messages do |options|
|
367
|
-
assert_recognizes(options.merge(preview_options), path: preview_path, method: :post)
|
368
|
-
end
|
369
|
-
|
370
|
-
assert_restful_named_routes_for :messages do
|
371
|
-
assert_named_route preview_path, :preview_new_message_path, preview_options
|
372
|
-
end
|
373
|
-
end
|
374
|
-
end
|
375
|
-
|
376
|
-
def test_with_new_action_with_name_prefix
|
377
|
-
with_routing do |set|
|
378
|
-
set.draw do
|
379
|
-
scope("/threads/:thread_id") do
|
380
|
-
resources :messages, as: "thread_messages" do
|
381
|
-
post :preview, on: :new
|
382
|
-
end
|
383
|
-
end
|
384
|
-
end
|
385
|
-
|
386
|
-
preview_options = { action: "preview", thread_id: "1" }
|
387
|
-
preview_path = "/threads/1/messages/new/preview"
|
388
|
-
assert_restful_routes_for :messages, path_prefix: "threads/1/", name_prefix: "thread_", options: { thread_id: "1" } do |options|
|
389
|
-
assert_recognizes(options.merge(preview_options), path: preview_path, method: :post)
|
390
|
-
end
|
391
|
-
|
392
|
-
assert_restful_named_routes_for :messages, path_prefix: "threads/1/", name_prefix: "thread_", options: { thread_id: "1" } do
|
393
|
-
assert_named_route preview_path, :preview_new_thread_message_path, preview_options
|
394
|
-
end
|
395
|
-
end
|
396
|
-
end
|
397
|
-
|
398
|
-
def test_with_formatted_new_action_with_name_prefix
|
399
|
-
with_routing do |set|
|
400
|
-
set.draw do
|
401
|
-
scope("/threads/:thread_id") do
|
402
|
-
resources :messages, as: "thread_messages" do
|
403
|
-
post :preview, on: :new
|
404
|
-
end
|
405
|
-
end
|
406
|
-
end
|
407
|
-
|
408
|
-
preview_options = { action: "preview", thread_id: "1", format: "xml" }
|
409
|
-
preview_path = "/threads/1/messages/new/preview.xml"
|
410
|
-
assert_restful_routes_for :messages, path_prefix: "threads/1/", name_prefix: "thread_", options: { thread_id: "1" } do |options|
|
411
|
-
assert_recognizes(options.merge(preview_options), path: preview_path, method: :post)
|
412
|
-
end
|
413
|
-
|
414
|
-
assert_restful_named_routes_for :messages, path_prefix: "threads/1/", name_prefix: "thread_", options: { thread_id: "1" } do
|
415
|
-
assert_named_route preview_path, :preview_new_thread_message_path, preview_options
|
416
|
-
end
|
417
|
-
end
|
418
|
-
end
|
419
|
-
|
420
|
-
def test_override_new_method
|
421
|
-
with_restful_routing :messages do
|
422
|
-
assert_restful_routes_for :messages do |options|
|
423
|
-
assert_recognizes(options.merge(action: "new"), path: "/messages/new", method: :get)
|
424
|
-
assert_raise(ActionController::RoutingError) do
|
425
|
-
@routes.recognize_path("/messages/new", method: :post)
|
426
|
-
end
|
427
|
-
end
|
428
|
-
end
|
429
|
-
|
430
|
-
with_routing do |set|
|
431
|
-
set.draw do
|
432
|
-
resources :messages do
|
433
|
-
match :new, via: [:post, :get], on: :new
|
434
|
-
end
|
435
|
-
end
|
436
|
-
|
437
|
-
assert_restful_routes_for :messages do |options|
|
438
|
-
assert_recognizes(options.merge(action: "new"), path: "/messages/new", method: :post)
|
439
|
-
assert_recognizes(options.merge(action: "new"), path: "/messages/new", method: :get)
|
440
|
-
end
|
441
|
-
end
|
442
|
-
end
|
443
|
-
|
444
|
-
def test_nested_restful_routes
|
445
|
-
with_routing do |set|
|
446
|
-
set.draw do
|
447
|
-
resources :threads do
|
448
|
-
resources :messages do
|
449
|
-
resources :comments
|
450
|
-
end
|
451
|
-
end
|
452
|
-
end
|
453
|
-
|
454
|
-
assert_simply_restful_for :threads
|
455
|
-
assert_simply_restful_for :messages,
|
456
|
-
name_prefix: "thread_",
|
457
|
-
path_prefix: "threads/1/",
|
458
|
-
options: { thread_id: "1" }
|
459
|
-
assert_simply_restful_for :comments,
|
460
|
-
name_prefix: "thread_message_",
|
461
|
-
path_prefix: "threads/1/messages/2/",
|
462
|
-
options: { thread_id: "1", message_id: "2" }
|
463
|
-
end
|
464
|
-
end
|
465
|
-
|
466
|
-
def test_shallow_nested_restful_routes
|
467
|
-
with_routing do |set|
|
468
|
-
set.draw do
|
469
|
-
resources :threads, shallow: true do
|
470
|
-
resources :messages do
|
471
|
-
resources :comments
|
472
|
-
end
|
473
|
-
end
|
474
|
-
end
|
475
|
-
|
476
|
-
assert_simply_restful_for :threads,
|
477
|
-
shallow: true
|
478
|
-
assert_simply_restful_for :messages,
|
479
|
-
name_prefix: "thread_",
|
480
|
-
path_prefix: "threads/1/",
|
481
|
-
shallow: true,
|
482
|
-
options: { thread_id: "1" }
|
483
|
-
assert_simply_restful_for :comments,
|
484
|
-
name_prefix: "message_",
|
485
|
-
path_prefix: "messages/2/",
|
486
|
-
shallow: true,
|
487
|
-
options: { message_id: "2" }
|
488
|
-
end
|
489
|
-
end
|
490
|
-
|
491
|
-
def test_shallow_nested_restful_routes_with_namespaces
|
492
|
-
with_routing do |set|
|
493
|
-
set.draw do
|
494
|
-
namespace :backoffice do
|
495
|
-
namespace :admin do
|
496
|
-
resources :products, shallow: true do
|
497
|
-
resources :images
|
498
|
-
end
|
499
|
-
end
|
500
|
-
end
|
501
|
-
end
|
502
|
-
|
503
|
-
assert_simply_restful_for :products,
|
504
|
-
controller: "backoffice/admin/products",
|
505
|
-
namespace: "backoffice/admin/",
|
506
|
-
name_prefix: "backoffice_admin_",
|
507
|
-
path_prefix: "backoffice/admin/",
|
508
|
-
shallow: true
|
509
|
-
assert_simply_restful_for :images,
|
510
|
-
controller: "backoffice/admin/images",
|
511
|
-
namespace: "backoffice/admin/",
|
512
|
-
name_prefix: "backoffice_admin_product_",
|
513
|
-
path_prefix: "backoffice/admin/products/1/",
|
514
|
-
shallow: true,
|
515
|
-
options: { product_id: "1" }
|
516
|
-
end
|
517
|
-
end
|
518
|
-
|
519
|
-
def test_restful_routes_dont_generate_duplicates
|
520
|
-
with_restful_routing :messages do
|
521
|
-
routes = @routes.routes
|
522
|
-
routes.each do |route|
|
523
|
-
routes.each do |r|
|
524
|
-
next if route == r # skip the comparison instance
|
525
|
-
assert_not_equal [route.conditions, route.path.spec.to_s, route.verb], [r.conditions, r.path.spec.to_s, r.verb]
|
526
|
-
end
|
527
|
-
end
|
528
|
-
end
|
529
|
-
end
|
530
|
-
|
531
|
-
def test_should_create_singleton_resource_routes
|
532
|
-
with_singleton_resources :account do
|
533
|
-
assert_singleton_restful_for :account
|
534
|
-
end
|
535
|
-
end
|
536
|
-
|
537
|
-
def test_should_create_multiple_singleton_resource_routes
|
538
|
-
with_singleton_resources :account, :product do
|
539
|
-
assert_singleton_restful_for :account
|
540
|
-
assert_singleton_restful_for :product
|
541
|
-
end
|
542
|
-
end
|
543
|
-
|
544
|
-
def test_should_create_nested_singleton_resource_routes
|
545
|
-
with_routing do |set|
|
546
|
-
set.draw do
|
547
|
-
resource :admin, controller: "admin" do
|
548
|
-
resource :account
|
549
|
-
end
|
550
|
-
end
|
551
|
-
|
552
|
-
assert_singleton_restful_for :admin, controller: "admin"
|
553
|
-
assert_singleton_restful_for :account, name_prefix: "admin_", path_prefix: "admin/"
|
554
|
-
end
|
555
|
-
end
|
556
|
-
|
557
|
-
def test_singleton_resource_with_member_action
|
558
|
-
[:patch, :put, :post].each do |method|
|
559
|
-
with_routing do |set|
|
560
|
-
set.draw do
|
561
|
-
resource :account do
|
562
|
-
match :reset, on: :member, via: method
|
563
|
-
end
|
564
|
-
end
|
565
|
-
|
566
|
-
reset_options = { action: "reset" }
|
567
|
-
reset_path = "/account/reset"
|
568
|
-
assert_singleton_routes_for :account do |options|
|
569
|
-
assert_recognizes(options.merge(reset_options), path: reset_path, method: method)
|
570
|
-
end
|
571
|
-
|
572
|
-
assert_singleton_named_routes_for :account do
|
573
|
-
assert_named_route reset_path, :reset_account_path, reset_options
|
574
|
-
end
|
575
|
-
end
|
576
|
-
end
|
577
|
-
end
|
578
|
-
|
579
|
-
def test_singleton_resource_with_two_member_actions_with_same_method
|
580
|
-
[:patch, :put, :post].each do |method|
|
581
|
-
with_routing do |set|
|
582
|
-
set.draw do
|
583
|
-
resource :account do
|
584
|
-
match :reset, on: :member, via: method
|
585
|
-
match :disable, on: :member, via: method
|
586
|
-
end
|
587
|
-
end
|
588
|
-
|
589
|
-
%w(reset disable).each do |action|
|
590
|
-
action_options = { action: action }
|
591
|
-
action_path = "/account/#{action}"
|
592
|
-
assert_singleton_routes_for :account do |options|
|
593
|
-
assert_recognizes(options.merge(action_options), path: action_path, method: method)
|
594
|
-
end
|
595
|
-
|
596
|
-
assert_singleton_named_routes_for :account do
|
597
|
-
assert_named_route action_path, "#{action}_account_path".to_sym, action_options
|
598
|
-
end
|
599
|
-
end
|
600
|
-
end
|
601
|
-
end
|
602
|
-
end
|
603
|
-
|
604
|
-
def test_should_nest_resources_in_singleton_resource
|
605
|
-
with_routing do |set|
|
606
|
-
set.draw do
|
607
|
-
resource :account do
|
608
|
-
resources :messages
|
609
|
-
end
|
610
|
-
end
|
611
|
-
|
612
|
-
assert_singleton_restful_for :account
|
613
|
-
assert_simply_restful_for :messages, name_prefix: "account_", path_prefix: "account/"
|
614
|
-
end
|
615
|
-
end
|
616
|
-
|
617
|
-
def test_should_nest_resources_in_singleton_resource_with_path_scope
|
618
|
-
with_routing do |set|
|
619
|
-
set.draw do
|
620
|
-
scope ":site_id" do
|
621
|
-
resource(:account) do
|
622
|
-
resources :messages
|
623
|
-
end
|
624
|
-
end
|
625
|
-
end
|
626
|
-
|
627
|
-
assert_singleton_restful_for :account, path_prefix: "7/", options: { site_id: "7" }
|
628
|
-
assert_simply_restful_for :messages, name_prefix: "account_", path_prefix: "7/account/", options: { site_id: "7" }
|
629
|
-
end
|
630
|
-
end
|
631
|
-
|
632
|
-
def test_should_nest_singleton_resource_in_resources
|
633
|
-
with_routing do |set|
|
634
|
-
set.draw do
|
635
|
-
resources :threads do
|
636
|
-
resource :admin, controller: "admin"
|
637
|
-
end
|
638
|
-
end
|
639
|
-
|
640
|
-
assert_simply_restful_for :threads
|
641
|
-
assert_singleton_restful_for :admin, controller: "admin", name_prefix: "thread_", path_prefix: "threads/5/", options: { thread_id: "5" }
|
642
|
-
end
|
643
|
-
end
|
644
|
-
|
645
|
-
def test_should_not_allow_delete_or_patch_or_put_on_collection_path
|
646
|
-
controller_name = :messages
|
647
|
-
with_restful_routing controller_name do
|
648
|
-
options = { controller: controller_name.to_s }
|
649
|
-
collection_path = "/#{controller_name}"
|
650
|
-
|
651
|
-
assert_raise(Assertion) do
|
652
|
-
assert_recognizes(options.merge(action: "update"), path: collection_path, method: :patch)
|
653
|
-
end
|
654
|
-
|
655
|
-
assert_raise(Assertion) do
|
656
|
-
assert_recognizes(options.merge(action: "update"), path: collection_path, method: :put)
|
657
|
-
end
|
658
|
-
|
659
|
-
assert_raise(Assertion) do
|
660
|
-
assert_recognizes(options.merge(action: "destroy"), path: collection_path, method: :delete)
|
661
|
-
end
|
662
|
-
end
|
663
|
-
end
|
664
|
-
|
665
|
-
def test_new_style_named_routes_for_resource
|
666
|
-
with_routing do |set|
|
667
|
-
set.draw do
|
668
|
-
scope "/threads/:thread_id" do
|
669
|
-
resources :messages, as: "thread_messages" do
|
670
|
-
get :search, on: :collection
|
671
|
-
get :preview, on: :new
|
672
|
-
end
|
673
|
-
end
|
674
|
-
end
|
675
|
-
|
676
|
-
assert_simply_restful_for :messages, name_prefix: "thread_", path_prefix: "threads/1/", options: { thread_id: "1" }
|
677
|
-
assert_named_route "/threads/1/messages/search", "search_thread_messages_path", {}
|
678
|
-
assert_named_route "/threads/1/messages/new", "new_thread_message_path", {}
|
679
|
-
assert_named_route "/threads/1/messages/new/preview", "preview_new_thread_message_path", {}
|
680
|
-
end
|
681
|
-
end
|
682
|
-
|
683
|
-
def test_new_style_named_routes_for_singleton_resource
|
684
|
-
with_routing do |set|
|
685
|
-
set.draw do
|
686
|
-
scope "/admin" do
|
687
|
-
resource :account, as: :admin_account do
|
688
|
-
get :login, on: :member
|
689
|
-
get :preview, on: :new
|
690
|
-
end
|
691
|
-
end
|
692
|
-
end
|
693
|
-
assert_singleton_restful_for :account, name_prefix: "admin_", path_prefix: "admin/"
|
694
|
-
assert_named_route "/admin/account/login", "login_admin_account_path", {}
|
695
|
-
assert_named_route "/admin/account/new", "new_admin_account_path", {}
|
696
|
-
assert_named_route "/admin/account/new/preview", "preview_new_admin_account_path", {}
|
697
|
-
end
|
698
|
-
end
|
699
|
-
|
700
|
-
def test_resources_in_namespace
|
701
|
-
with_routing do |set|
|
702
|
-
set.draw do
|
703
|
-
namespace :backoffice do
|
704
|
-
resources :products
|
705
|
-
end
|
706
|
-
end
|
707
|
-
|
708
|
-
assert_simply_restful_for :products, controller: "backoffice/products", name_prefix: "backoffice_", path_prefix: "backoffice/"
|
709
|
-
end
|
710
|
-
end
|
711
|
-
|
712
|
-
def test_resources_in_nested_namespace
|
713
|
-
with_routing do |set|
|
714
|
-
set.draw do
|
715
|
-
namespace :backoffice do
|
716
|
-
namespace :admin do
|
717
|
-
resources :products
|
718
|
-
end
|
719
|
-
end
|
720
|
-
end
|
721
|
-
|
722
|
-
assert_simply_restful_for :products, controller: "backoffice/admin/products", name_prefix: "backoffice_admin_", path_prefix: "backoffice/admin/"
|
723
|
-
end
|
724
|
-
end
|
725
|
-
|
726
|
-
def test_resources_using_namespace
|
727
|
-
with_routing do |set|
|
728
|
-
set.draw do
|
729
|
-
namespace :backoffice, path: nil, as: nil do
|
730
|
-
resources :products
|
731
|
-
end
|
732
|
-
end
|
733
|
-
|
734
|
-
assert_simply_restful_for :products, controller: "backoffice/products"
|
735
|
-
end
|
736
|
-
end
|
737
|
-
|
738
|
-
def test_nested_resources_using_namespace
|
739
|
-
with_routing do |set|
|
740
|
-
set.draw do
|
741
|
-
namespace :backoffice do
|
742
|
-
resources :products do
|
743
|
-
resources :images
|
744
|
-
end
|
745
|
-
end
|
746
|
-
end
|
747
|
-
|
748
|
-
assert_simply_restful_for :images, controller: "backoffice/images", name_prefix: "backoffice_product_", path_prefix: "backoffice/products/1/", options: { product_id: "1" }
|
749
|
-
end
|
750
|
-
end
|
751
|
-
|
752
|
-
def test_nested_resources_in_nested_namespace
|
753
|
-
with_routing do |set|
|
754
|
-
set.draw do
|
755
|
-
namespace :backoffice do
|
756
|
-
namespace :admin do
|
757
|
-
resources :products do
|
758
|
-
resources :images
|
759
|
-
end
|
760
|
-
end
|
761
|
-
end
|
762
|
-
end
|
763
|
-
|
764
|
-
assert_simply_restful_for :images, controller: "backoffice/admin/images", name_prefix: "backoffice_admin_product_", path_prefix: "backoffice/admin/products/1/", options: { product_id: "1" }
|
765
|
-
end
|
766
|
-
end
|
767
|
-
|
768
|
-
def test_with_path_segment
|
769
|
-
with_restful_routing :messages do
|
770
|
-
assert_simply_restful_for :messages
|
771
|
-
assert_recognizes({ controller: "messages", action: "index" }, "/messages")
|
772
|
-
assert_recognizes({ controller: "messages", action: "index" }, "/messages/")
|
773
|
-
end
|
774
|
-
|
775
|
-
with_routing do |set|
|
776
|
-
set.draw do
|
777
|
-
resources :messages, path: "reviews"
|
778
|
-
end
|
779
|
-
assert_simply_restful_for :messages, as: "reviews"
|
780
|
-
assert_recognizes({ controller: "messages", action: "index" }, "/reviews")
|
781
|
-
assert_recognizes({ controller: "messages", action: "index" }, "/reviews/")
|
782
|
-
end
|
783
|
-
end
|
784
|
-
|
785
|
-
def test_multiple_with_path_segment_and_controller
|
786
|
-
with_routing do |set|
|
787
|
-
set.draw do
|
788
|
-
resources :products do
|
789
|
-
resources :product_reviews, path: "reviews", controller: "messages"
|
790
|
-
end
|
791
|
-
resources :tutors do
|
792
|
-
resources :tutor_reviews, path: "reviews", controller: "comments"
|
793
|
-
end
|
794
|
-
end
|
795
|
-
|
796
|
-
assert_simply_restful_for :product_reviews, controller: "messages", as: "reviews", name_prefix: "product_", path_prefix: "products/1/", options: { product_id: "1" }
|
797
|
-
assert_simply_restful_for :tutor_reviews, controller: "comments", as: "reviews", name_prefix: "tutor_", path_prefix: "tutors/1/", options: { tutor_id: "1" }
|
798
|
-
end
|
799
|
-
end
|
800
|
-
|
801
|
-
def test_with_path_segment_path_prefix_constraints
|
802
|
-
expected_options = { controller: "messages", action: "show", thread_id: "1.1.1", id: "1" }
|
803
|
-
with_routing do |set|
|
804
|
-
set.draw do
|
805
|
-
scope "/thread/:thread_id", constraints: { thread_id: /[0-9]\.[0-9]\.[0-9]/ } do
|
806
|
-
resources :messages, path: "comments"
|
807
|
-
end
|
808
|
-
end
|
809
|
-
assert_recognizes(expected_options, path: "thread/1.1.1/comments/1", method: :get)
|
810
|
-
end
|
811
|
-
end
|
812
|
-
|
813
|
-
def test_resource_has_only_show_action
|
814
|
-
with_routing do |set|
|
815
|
-
set.draw do
|
816
|
-
resources :products, only: :show
|
817
|
-
end
|
818
|
-
|
819
|
-
assert_resource_allowed_routes("products", {}, { id: "1" }, :show, [:index, :new, :create, :edit, :update, :destroy])
|
820
|
-
assert_resource_allowed_routes("products", { format: "xml" }, { id: "1" }, :show, [:index, :new, :create, :edit, :update, :destroy])
|
821
|
-
end
|
822
|
-
end
|
823
|
-
|
824
|
-
def test_singleton_resource_has_only_show_action
|
825
|
-
with_routing do |set|
|
826
|
-
set.draw do
|
827
|
-
resource :account, only: :show
|
828
|
-
end
|
829
|
-
|
830
|
-
assert_singleton_resource_allowed_routes("accounts", {}, :show, [:index, :new, :create, :edit, :update, :destroy])
|
831
|
-
assert_singleton_resource_allowed_routes("accounts", { format: "xml" }, :show, [:index, :new, :create, :edit, :update, :destroy])
|
832
|
-
end
|
833
|
-
end
|
834
|
-
|
835
|
-
def test_resource_does_not_have_destroy_action
|
836
|
-
with_routing do |set|
|
837
|
-
set.draw do
|
838
|
-
resources :products, except: :destroy
|
839
|
-
end
|
840
|
-
|
841
|
-
assert_resource_allowed_routes("products", {}, { id: "1" }, [:index, :new, :create, :show, :edit, :update], :destroy)
|
842
|
-
assert_resource_allowed_routes("products", { format: "xml" }, { id: "1" }, [:index, :new, :create, :show, :edit, :update], :destroy)
|
843
|
-
end
|
844
|
-
end
|
845
|
-
|
846
|
-
def test_singleton_resource_does_not_have_destroy_action
|
847
|
-
with_routing do |set|
|
848
|
-
set.draw do
|
849
|
-
resource :account, except: :destroy
|
850
|
-
end
|
851
|
-
|
852
|
-
assert_singleton_resource_allowed_routes("accounts", {}, [:new, :create, :show, :edit, :update], :destroy)
|
853
|
-
assert_singleton_resource_allowed_routes("accounts", { format: "xml" }, [:new, :create, :show, :edit, :update], :destroy)
|
854
|
-
end
|
855
|
-
end
|
856
|
-
|
857
|
-
def test_resource_has_only_create_action_and_named_route
|
858
|
-
with_routing do |set|
|
859
|
-
set.draw do
|
860
|
-
resources :products, only: :create
|
861
|
-
end
|
862
|
-
|
863
|
-
assert_resource_allowed_routes("products", {}, { id: "1" }, :create, [:index, :new, :show, :edit, :update, :destroy])
|
864
|
-
assert_resource_allowed_routes("products", { format: "xml" }, { id: "1" }, :create, [:index, :new, :show, :edit, :update, :destroy])
|
865
|
-
|
866
|
-
assert_not_nil set.named_routes[:products]
|
867
|
-
end
|
868
|
-
end
|
869
|
-
|
870
|
-
def test_resource_has_only_update_action_and_named_route
|
871
|
-
with_routing do |set|
|
872
|
-
set.draw do
|
873
|
-
resources :products, only: :update
|
874
|
-
end
|
875
|
-
|
876
|
-
assert_resource_allowed_routes("products", {}, { id: "1" }, :update, [:index, :new, :create, :show, :edit, :destroy])
|
877
|
-
assert_resource_allowed_routes("products", { format: "xml" }, { id: "1" }, :update, [:index, :new, :create, :show, :edit, :destroy])
|
878
|
-
|
879
|
-
assert_not_nil set.named_routes[:product]
|
880
|
-
end
|
881
|
-
end
|
882
|
-
|
883
|
-
def test_resource_has_only_destroy_action_and_named_route
|
884
|
-
with_routing do |set|
|
885
|
-
set.draw do
|
886
|
-
resources :products, only: :destroy
|
887
|
-
end
|
888
|
-
|
889
|
-
assert_resource_allowed_routes("products", {}, { id: "1" }, :destroy, [:index, :new, :create, :show, :edit, :update])
|
890
|
-
assert_resource_allowed_routes("products", { format: "xml" }, { id: "1" }, :destroy, [:index, :new, :create, :show, :edit, :update])
|
891
|
-
|
892
|
-
assert_not_nil set.named_routes[:product]
|
893
|
-
end
|
894
|
-
end
|
895
|
-
|
896
|
-
def test_singleton_resource_has_only_create_action_and_named_route
|
897
|
-
with_routing do |set|
|
898
|
-
set.draw do
|
899
|
-
resource :account, only: :create
|
900
|
-
end
|
901
|
-
|
902
|
-
assert_singleton_resource_allowed_routes("accounts", {}, :create, [:new, :show, :edit, :update, :destroy])
|
903
|
-
assert_singleton_resource_allowed_routes("accounts", { format: "xml" }, :create, [:new, :show, :edit, :update, :destroy])
|
904
|
-
|
905
|
-
assert_not_nil set.named_routes[:account]
|
906
|
-
end
|
907
|
-
end
|
908
|
-
|
909
|
-
def test_singleton_resource_has_only_update_action_and_named_route
|
910
|
-
with_routing do |set|
|
911
|
-
set.draw do
|
912
|
-
resource :account, only: :update
|
913
|
-
end
|
914
|
-
|
915
|
-
assert_singleton_resource_allowed_routes("accounts", {}, :update, [:new, :create, :show, :edit, :destroy])
|
916
|
-
assert_singleton_resource_allowed_routes("accounts", { format: "xml" }, :update, [:new, :create, :show, :edit, :destroy])
|
917
|
-
|
918
|
-
assert_not_nil set.named_routes[:account]
|
919
|
-
end
|
920
|
-
end
|
921
|
-
|
922
|
-
def test_singleton_resource_has_only_destroy_action_and_named_route
|
923
|
-
with_routing do |set|
|
924
|
-
set.draw do
|
925
|
-
resource :account, only: :destroy
|
926
|
-
end
|
927
|
-
|
928
|
-
assert_singleton_resource_allowed_routes("accounts", {}, :destroy, [:new, :create, :show, :edit, :update])
|
929
|
-
assert_singleton_resource_allowed_routes("accounts", { format: "xml" }, :destroy, [:new, :create, :show, :edit, :update])
|
930
|
-
|
931
|
-
assert_not_nil set.named_routes[:account]
|
932
|
-
end
|
933
|
-
end
|
934
|
-
|
935
|
-
def test_resource_has_only_collection_action
|
936
|
-
with_routing do |set|
|
937
|
-
set.draw do
|
938
|
-
resources :products, only: [] do
|
939
|
-
get :sale, on: :collection
|
940
|
-
end
|
941
|
-
end
|
942
|
-
|
943
|
-
assert_resource_allowed_routes("products", {}, { id: "1" }, [], [:index, :new, :create, :show, :edit, :update, :destroy])
|
944
|
-
assert_resource_allowed_routes("products", { format: "xml" }, { id: "1" }, [], [:index, :new, :create, :show, :edit, :update, :destroy])
|
945
|
-
|
946
|
-
assert_recognizes({ controller: "products", action: "sale" }, { path: "products/sale", method: :get })
|
947
|
-
assert_recognizes({ controller: "products", action: "sale", format: "xml" }, { path: "products/sale.xml", method: :get })
|
948
|
-
end
|
949
|
-
end
|
950
|
-
|
951
|
-
def test_resource_has_only_member_action
|
952
|
-
with_routing do |set|
|
953
|
-
set.draw do
|
954
|
-
resources :products, only: [] do
|
955
|
-
get :preview, on: :member
|
956
|
-
end
|
957
|
-
end
|
958
|
-
|
959
|
-
assert_resource_allowed_routes("products", {}, { id: "1" }, [], [:index, :new, :create, :show, :edit, :update, :destroy])
|
960
|
-
assert_resource_allowed_routes("products", { format: "xml" }, { id: "1" }, [], [:index, :new, :create, :show, :edit, :update, :destroy])
|
961
|
-
|
962
|
-
assert_recognizes({ controller: "products", action: "preview", id: "1" }, { path: "products/1/preview", method: :get })
|
963
|
-
assert_recognizes({ controller: "products", action: "preview", id: "1", format: "xml" }, { path: "products/1/preview.xml", method: :get })
|
964
|
-
end
|
965
|
-
end
|
966
|
-
|
967
|
-
def test_singleton_resource_has_only_member_action
|
968
|
-
with_routing do |set|
|
969
|
-
set.draw do
|
970
|
-
resource :account, only: [] do
|
971
|
-
member do
|
972
|
-
get :signup
|
973
|
-
end
|
974
|
-
end
|
975
|
-
end
|
976
|
-
|
977
|
-
assert_singleton_resource_allowed_routes("accounts", {}, [], [:new, :create, :show, :edit, :update, :destroy])
|
978
|
-
assert_singleton_resource_allowed_routes("accounts", { format: "xml" }, [], [:new, :create, :show, :edit, :update, :destroy])
|
979
|
-
|
980
|
-
assert_recognizes({ controller: "accounts", action: "signup" }, { path: "account/signup", method: :get })
|
981
|
-
assert_recognizes({ controller: "accounts", action: "signup", format: "xml" }, { path: "account/signup.xml", method: :get })
|
982
|
-
end
|
983
|
-
end
|
984
|
-
|
985
|
-
def test_nested_resource_has_only_show_and_member_action
|
986
|
-
with_routing do |set|
|
987
|
-
set.draw do
|
988
|
-
resources :products, only: [:index, :show] do
|
989
|
-
resources :images, only: :show do
|
990
|
-
get :thumbnail, on: :member
|
991
|
-
end
|
992
|
-
end
|
993
|
-
end
|
994
|
-
|
995
|
-
assert_resource_allowed_routes("images", { product_id: "1" }, { id: "2" }, :show, [:index, :new, :create, :edit, :update, :destroy], "products/1/images")
|
996
|
-
assert_resource_allowed_routes("images", { product_id: "1", format: "xml" }, { id: "2" }, :show, [:index, :new, :create, :edit, :update, :destroy], "products/1/images")
|
997
|
-
|
998
|
-
assert_recognizes({ controller: "images", action: "thumbnail", product_id: "1", id: "2" }, { path: "products/1/images/2/thumbnail", method: :get })
|
999
|
-
assert_recognizes({ controller: "images", action: "thumbnail", product_id: "1", id: "2", format: "jpg" }, { path: "products/1/images/2/thumbnail.jpg", method: :get })
|
1000
|
-
end
|
1001
|
-
end
|
1002
|
-
|
1003
|
-
def test_nested_resource_does_not_inherit_only_option
|
1004
|
-
with_routing do |set|
|
1005
|
-
set.draw do
|
1006
|
-
resources :products, only: :show do
|
1007
|
-
resources :images, except: :destroy
|
1008
|
-
end
|
1009
|
-
end
|
1010
|
-
|
1011
|
-
assert_resource_allowed_routes("images", { product_id: "1" }, { id: "2" }, [:index, :new, :create, :show, :edit, :update], :destroy, "products/1/images")
|
1012
|
-
assert_resource_allowed_routes("images", { product_id: "1", format: "xml" }, { id: "2" }, [:index, :new, :create, :show, :edit, :update], :destroy, "products/1/images")
|
1013
|
-
end
|
1014
|
-
end
|
1015
|
-
|
1016
|
-
def test_nested_resource_does_not_inherit_only_option_by_default
|
1017
|
-
with_routing do |set|
|
1018
|
-
set.draw do
|
1019
|
-
resources :products, only: :show do
|
1020
|
-
resources :images
|
1021
|
-
end
|
1022
|
-
end
|
1023
|
-
|
1024
|
-
assert_resource_allowed_routes("images", { product_id: "1" }, { id: "2" }, [:index, :new, :create, :show, :edit, :update, :destroy], [], "products/1/images")
|
1025
|
-
assert_resource_allowed_routes("images", { product_id: "1", format: "xml" }, { id: "2" }, [:index, :new, :create, :show, :edit, :update, :destroy], [], "products/1/images")
|
1026
|
-
end
|
1027
|
-
end
|
1028
|
-
|
1029
|
-
def test_nested_resource_does_not_inherit_except_option
|
1030
|
-
with_routing do |set|
|
1031
|
-
set.draw do
|
1032
|
-
resources :products, except: :show do
|
1033
|
-
resources :images, only: :destroy
|
1034
|
-
end
|
1035
|
-
end
|
1036
|
-
|
1037
|
-
assert_resource_allowed_routes("images", { product_id: "1" }, { id: "2" }, :destroy, [:index, :new, :create, :show, :edit, :update], "products/1/images")
|
1038
|
-
assert_resource_allowed_routes("images", { product_id: "1", format: "xml" }, { id: "2" }, :destroy, [:index, :new, :create, :show, :edit, :update], "products/1/images")
|
1039
|
-
end
|
1040
|
-
end
|
1041
|
-
|
1042
|
-
def test_nested_resource_does_not_inherit_except_option_by_default
|
1043
|
-
with_routing do |set|
|
1044
|
-
set.draw do
|
1045
|
-
resources :products, except: :show do
|
1046
|
-
resources :images
|
1047
|
-
end
|
1048
|
-
end
|
1049
|
-
|
1050
|
-
assert_resource_allowed_routes("images", { product_id: "1" }, { id: "2" }, [:index, :new, :create, :show, :edit, :update, :destroy], [], "products/1/images")
|
1051
|
-
assert_resource_allowed_routes("images", { product_id: "1", format: "xml" }, { id: "2" }, [:index, :new, :create, :show, :edit, :update, :destroy], [], "products/1/images")
|
1052
|
-
end
|
1053
|
-
end
|
1054
|
-
|
1055
|
-
def test_default_singleton_restful_route_uses_get
|
1056
|
-
with_routing do |set|
|
1057
|
-
set.draw do
|
1058
|
-
resource :product
|
1059
|
-
end
|
1060
|
-
|
1061
|
-
assert_routing "/product", controller: "products", action: "show"
|
1062
|
-
assert set.recognize_path("/product", method: :get)
|
1063
|
-
end
|
1064
|
-
end
|
1065
|
-
|
1066
|
-
def test_assert_routing_accepts_all_as_a_valid_method
|
1067
|
-
with_routing do |set|
|
1068
|
-
set.draw do
|
1069
|
-
match "/products", to: "products#show", via: :all
|
1070
|
-
end
|
1071
|
-
|
1072
|
-
assert_routing({ method: "all", path: "/products" }, { controller: "products", action: "show" })
|
1073
|
-
end
|
1074
|
-
end
|
1075
|
-
|
1076
|
-
def test_assert_routing_fails_when_not_all_http_methods_are_recognized
|
1077
|
-
with_routing do |set|
|
1078
|
-
set.draw do
|
1079
|
-
match "/products", to: "products#show", via: [:get, :post, :put]
|
1080
|
-
end
|
1081
|
-
|
1082
|
-
assert_raises(Minitest::Assertion) do
|
1083
|
-
assert_routing({ method: "all", path: "/products" }, { controller: "products", action: "show" })
|
1084
|
-
end
|
1085
|
-
end
|
1086
|
-
end
|
1087
|
-
|
1088
|
-
def test_singleton_resource_name_is_not_singularized
|
1089
|
-
with_singleton_resources(:products) do
|
1090
|
-
assert_singleton_restful_for :products
|
1091
|
-
end
|
1092
|
-
end
|
1093
|
-
|
1094
|
-
private
|
1095
|
-
def with_restful_routing(*args)
|
1096
|
-
options = args.extract_options!
|
1097
|
-
collection_methods = options.delete(:collection)
|
1098
|
-
member_methods = options.delete(:member)
|
1099
|
-
path_prefix = options.delete(:path_prefix)
|
1100
|
-
args.push(options)
|
1101
|
-
|
1102
|
-
with_routing do |set|
|
1103
|
-
set.draw do
|
1104
|
-
scope(path_prefix || "") do
|
1105
|
-
resources(*args) do
|
1106
|
-
if collection_methods
|
1107
|
-
collection do
|
1108
|
-
collection_methods.each do |name, method|
|
1109
|
-
send(method, name)
|
1110
|
-
end
|
1111
|
-
end
|
1112
|
-
end
|
1113
|
-
|
1114
|
-
if member_methods
|
1115
|
-
member do
|
1116
|
-
member_methods.each do |name, method|
|
1117
|
-
send(method, name)
|
1118
|
-
end
|
1119
|
-
end
|
1120
|
-
end
|
1121
|
-
end
|
1122
|
-
end
|
1123
|
-
end
|
1124
|
-
yield
|
1125
|
-
end
|
1126
|
-
end
|
1127
|
-
|
1128
|
-
def with_singleton_resources(*args)
|
1129
|
-
with_routing do |set|
|
1130
|
-
set.draw { resource(*args) }
|
1131
|
-
yield
|
1132
|
-
end
|
1133
|
-
end
|
1134
|
-
|
1135
|
-
# runs assert_restful_routes_for and assert_restful_named_routes for on the controller_name and options, without passing a block.
|
1136
|
-
def assert_simply_restful_for(controller_name, options = {})
|
1137
|
-
assert_restful_routes_for controller_name, options
|
1138
|
-
assert_restful_named_routes_for controller_name, nil, options
|
1139
|
-
end
|
1140
|
-
|
1141
|
-
def assert_singleton_restful_for(singleton_name, options = {})
|
1142
|
-
assert_singleton_routes_for singleton_name, options
|
1143
|
-
assert_singleton_named_routes_for singleton_name, options
|
1144
|
-
end
|
1145
|
-
|
1146
|
-
def assert_restful_routes_for(controller_name, options = {})
|
1147
|
-
route_options = (options[:options] ||= {}).dup
|
1148
|
-
route_options[:controller] = options[:controller] || controller_name.to_s
|
1149
|
-
|
1150
|
-
if options[:shallow]
|
1151
|
-
options[:shallow_options] ||= {}
|
1152
|
-
options[:shallow_options][:controller] = route_options[:controller]
|
1153
|
-
else
|
1154
|
-
options[:shallow_options] = route_options
|
1155
|
-
end
|
1156
|
-
|
1157
|
-
new_action = @routes.resources_path_names[:new] || "new"
|
1158
|
-
edit_action = @routes.resources_path_names[:edit] || "edit"
|
1159
|
-
|
1160
|
-
if options[:path_names]
|
1161
|
-
new_action = options[:path_names][:new] if options[:path_names][:new]
|
1162
|
-
edit_action = options[:path_names][:edit] if options[:path_names][:edit]
|
1163
|
-
end
|
1164
|
-
|
1165
|
-
path = "#{options[:as] || controller_name}"
|
1166
|
-
collection_path = "/#{options[:path_prefix]}#{path}"
|
1167
|
-
shallow_path = "/#{options[:shallow] ? options[:namespace] : options[:path_prefix]}#{path}"
|
1168
|
-
member_path = "#{shallow_path}/1"
|
1169
|
-
new_path = "#{collection_path}/#{new_action}"
|
1170
|
-
edit_member_path = "#{member_path}/#{edit_action}"
|
1171
|
-
formatted_edit_member_path = "#{member_path}/#{edit_action}.xml"
|
1172
|
-
|
1173
|
-
with_options(route_options) do |controller|
|
1174
|
-
controller.assert_routing collection_path, action: "index"
|
1175
|
-
controller.assert_routing new_path, action: "new"
|
1176
|
-
controller.assert_routing "#{collection_path}.xml", action: "index", format: "xml"
|
1177
|
-
controller.assert_routing "#{new_path}.xml", action: "new", format: "xml"
|
1178
|
-
end
|
1179
|
-
|
1180
|
-
with_options(options[:shallow_options]) do |controller|
|
1181
|
-
controller.assert_routing member_path, action: "show", id: "1"
|
1182
|
-
controller.assert_routing edit_member_path, action: "edit", id: "1"
|
1183
|
-
controller.assert_routing "#{member_path}.xml", action: "show", id: "1", format: "xml"
|
1184
|
-
controller.assert_routing formatted_edit_member_path, action: "edit", id: "1", format: "xml"
|
1185
|
-
end
|
1186
|
-
|
1187
|
-
assert_recognizes(route_options.merge(action: "index"), path: collection_path, method: :get)
|
1188
|
-
assert_recognizes(route_options.merge(action: "new"), path: new_path, method: :get)
|
1189
|
-
assert_recognizes(route_options.merge(action: "create"), path: collection_path, method: :post)
|
1190
|
-
assert_recognizes(options[:shallow_options].merge(action: "show", id: "1"), path: member_path, method: :get)
|
1191
|
-
assert_recognizes(options[:shallow_options].merge(action: "edit", id: "1"), path: edit_member_path, method: :get)
|
1192
|
-
assert_recognizes(options[:shallow_options].merge(action: "update", id: "1"), path: member_path, method: :put)
|
1193
|
-
assert_recognizes(options[:shallow_options].merge(action: "destroy", id: "1"), path: member_path, method: :delete)
|
1194
|
-
|
1195
|
-
assert_recognizes(route_options.merge(action: "index", format: "xml"), path: "#{collection_path}.xml", method: :get)
|
1196
|
-
assert_recognizes(route_options.merge(action: "new", format: "xml"), path: "#{new_path}.xml", method: :get)
|
1197
|
-
assert_recognizes(route_options.merge(action: "create", format: "xml"), path: "#{collection_path}.xml", method: :post)
|
1198
|
-
assert_recognizes(options[:shallow_options].merge(action: "show", id: "1", format: "xml"), path: "#{member_path}.xml", method: :get)
|
1199
|
-
assert_recognizes(options[:shallow_options].merge(action: "edit", id: "1", format: "xml"), path: formatted_edit_member_path, method: :get)
|
1200
|
-
assert_recognizes(options[:shallow_options].merge(action: "update", id: "1", format: "xml"), path: "#{member_path}.xml", method: :put)
|
1201
|
-
assert_recognizes(options[:shallow_options].merge(action: "destroy", id: "1", format: "xml"), path: "#{member_path}.xml", method: :delete)
|
1202
|
-
|
1203
|
-
yield route_options if block_given?
|
1204
|
-
end
|
1205
|
-
|
1206
|
-
# test named routes like foo_path and foos_path map to the correct options.
|
1207
|
-
def assert_restful_named_routes_for(controller_name, singular_name = nil, options = {})
|
1208
|
-
if singular_name.is_a?(Hash)
|
1209
|
-
options = singular_name
|
1210
|
-
singular_name = nil
|
1211
|
-
end
|
1212
|
-
singular_name ||= controller_name.to_s.singularize
|
1213
|
-
|
1214
|
-
route_options = (options[:options] ||= {}).dup
|
1215
|
-
route_options[:controller] = options[:controller] || controller_name.to_s
|
1216
|
-
|
1217
|
-
if options[:shallow]
|
1218
|
-
options[:shallow_options] ||= {}
|
1219
|
-
options[:shallow_options][:controller] = route_options[:controller]
|
1220
|
-
else
|
1221
|
-
options[:shallow_options] = route_options
|
1222
|
-
end
|
1223
|
-
|
1224
|
-
@controller = "#{route_options[:controller].camelize}Controller".constantize.new
|
1225
|
-
@controller.singleton_class.include(@routes.url_helpers)
|
1226
|
-
get :index, params: route_options
|
1227
|
-
route_options.delete :action
|
1228
|
-
|
1229
|
-
path = "#{options[:as] || controller_name}"
|
1230
|
-
shallow_path = "/#{options[:shallow] ? options[:namespace] : options[:path_prefix]}#{path}"
|
1231
|
-
full_path = "/#{options[:path_prefix]}#{path}"
|
1232
|
-
name_prefix = options[:name_prefix]
|
1233
|
-
shallow_prefix = options[:shallow] ? options[:namespace].try(:gsub, /\//, "_") : options[:name_prefix]
|
1234
|
-
|
1235
|
-
new_action = "new"
|
1236
|
-
edit_action = "edit"
|
1237
|
-
if options[:path_names]
|
1238
|
-
new_action = options[:path_names][:new] || "new"
|
1239
|
-
edit_action = options[:path_names][:edit] || "edit"
|
1240
|
-
end
|
1241
|
-
|
1242
|
-
assert_named_route "#{full_path}", "#{name_prefix}#{controller_name}_path", route_options
|
1243
|
-
assert_named_route "#{full_path}.xml", "#{name_prefix}#{controller_name}_path", route_options.merge(format: "xml")
|
1244
|
-
assert_named_route "#{shallow_path}/1", "#{shallow_prefix}#{singular_name}_path", options[:shallow_options].merge(id: "1")
|
1245
|
-
assert_named_route "#{shallow_path}/1.xml", "#{shallow_prefix}#{singular_name}_path", options[:shallow_options].merge(id: "1", format: "xml")
|
1246
|
-
|
1247
|
-
assert_named_route "#{full_path}/#{new_action}", "new_#{name_prefix}#{singular_name}_path", route_options
|
1248
|
-
assert_named_route "#{full_path}/#{new_action}.xml", "new_#{name_prefix}#{singular_name}_path", route_options.merge(format: "xml")
|
1249
|
-
assert_named_route "#{shallow_path}/1/#{edit_action}", "edit_#{shallow_prefix}#{singular_name}_path", options[:shallow_options].merge(id: "1")
|
1250
|
-
assert_named_route "#{shallow_path}/1/#{edit_action}.xml", "edit_#{shallow_prefix}#{singular_name}_path", options[:shallow_options].merge(id: "1", format: "xml")
|
1251
|
-
|
1252
|
-
yield route_options if block_given?
|
1253
|
-
end
|
1254
|
-
|
1255
|
-
def assert_singleton_routes_for(singleton_name, options = {})
|
1256
|
-
route_options = (options[:options] ||= {}).dup
|
1257
|
-
route_options[:controller] = options[:controller] || singleton_name.to_s.pluralize
|
1258
|
-
|
1259
|
-
full_path = "/#{options[:path_prefix]}#{options[:as] || singleton_name}"
|
1260
|
-
new_path = "#{full_path}/new"
|
1261
|
-
edit_path = "#{full_path}/edit"
|
1262
|
-
formatted_edit_path = "#{full_path}/edit.xml"
|
1263
|
-
|
1264
|
-
with_options route_options do |controller|
|
1265
|
-
controller.assert_routing full_path, action: "show"
|
1266
|
-
controller.assert_routing new_path, action: "new"
|
1267
|
-
controller.assert_routing edit_path, action: "edit"
|
1268
|
-
controller.assert_routing "#{full_path}.xml", action: "show", format: "xml"
|
1269
|
-
controller.assert_routing "#{new_path}.xml", action: "new", format: "xml"
|
1270
|
-
controller.assert_routing formatted_edit_path, action: "edit", format: "xml"
|
1271
|
-
end
|
1272
|
-
|
1273
|
-
assert_recognizes(route_options.merge(action: "show"), path: full_path, method: :get)
|
1274
|
-
assert_recognizes(route_options.merge(action: "new"), path: new_path, method: :get)
|
1275
|
-
assert_recognizes(route_options.merge(action: "edit"), path: edit_path, method: :get)
|
1276
|
-
assert_recognizes(route_options.merge(action: "create"), path: full_path, method: :post)
|
1277
|
-
assert_recognizes(route_options.merge(action: "update"), path: full_path, method: :put)
|
1278
|
-
assert_recognizes(route_options.merge(action: "destroy"), path: full_path, method: :delete)
|
1279
|
-
|
1280
|
-
assert_recognizes(route_options.merge(action: "show", format: "xml"), path: "#{full_path}.xml", method: :get)
|
1281
|
-
assert_recognizes(route_options.merge(action: "new", format: "xml"), path: "#{new_path}.xml", method: :get)
|
1282
|
-
assert_recognizes(route_options.merge(action: "edit", format: "xml"), path: formatted_edit_path, method: :get)
|
1283
|
-
assert_recognizes(route_options.merge(action: "create", format: "xml"), path: "#{full_path}.xml", method: :post)
|
1284
|
-
assert_recognizes(route_options.merge(action: "update", format: "xml"), path: "#{full_path}.xml", method: :put)
|
1285
|
-
assert_recognizes(route_options.merge(action: "destroy", format: "xml"), path: "#{full_path}.xml", method: :delete)
|
1286
|
-
|
1287
|
-
yield route_options if block_given?
|
1288
|
-
end
|
1289
|
-
|
1290
|
-
def assert_singleton_named_routes_for(singleton_name, options = {})
|
1291
|
-
route_options = (options[:options] ||= {}).dup
|
1292
|
-
controller_name = route_options[:controller] || options[:controller] || singleton_name.to_s.pluralize
|
1293
|
-
@controller = "#{controller_name.camelize}Controller".constantize.new
|
1294
|
-
@controller.singleton_class.include(@routes.url_helpers)
|
1295
|
-
get :show, params: route_options
|
1296
|
-
route_options.delete :action
|
1297
|
-
|
1298
|
-
full_path = "/#{options[:path_prefix]}#{options[:as] || singleton_name}"
|
1299
|
-
name_prefix = options[:name_prefix]
|
1300
|
-
|
1301
|
-
assert_named_route "#{full_path}", "#{name_prefix}#{singleton_name}_path", route_options
|
1302
|
-
assert_named_route "#{full_path}.xml", "#{name_prefix}#{singleton_name}_path", route_options.merge(format: "xml")
|
1303
|
-
|
1304
|
-
assert_named_route "#{full_path}/new", "new_#{name_prefix}#{singleton_name}_path", route_options
|
1305
|
-
assert_named_route "#{full_path}/new.xml", "new_#{name_prefix}#{singleton_name}_path", route_options.merge(format: "xml")
|
1306
|
-
assert_named_route "#{full_path}/edit", "edit_#{name_prefix}#{singleton_name}_path", route_options
|
1307
|
-
assert_named_route "#{full_path}/edit.xml", "edit_#{name_prefix}#{singleton_name}_path", route_options.merge(format: "xml")
|
1308
|
-
end
|
1309
|
-
|
1310
|
-
def assert_named_route(expected, route, options)
|
1311
|
-
actual = @controller.send(route, options) rescue $!.class.name
|
1312
|
-
assert_equal expected, actual, "Error on route: #{route}(#{options.inspect})"
|
1313
|
-
end
|
1314
|
-
|
1315
|
-
def assert_resource_methods(expected, resource, action_method, method)
|
1316
|
-
assert_equal expected.length, resource.send("#{action_method}_methods")[method].size, "#{resource.send("#{action_method}_methods")[method].inspect}"
|
1317
|
-
expected.each do |action|
|
1318
|
-
assert_includes resource.send("#{action_method}_methods")[method], action,
|
1319
|
-
"#{method} not in #{action_method} methods: #{resource.send("#{action_method}_methods")[method].inspect}"
|
1320
|
-
end
|
1321
|
-
end
|
1322
|
-
|
1323
|
-
def assert_resource_allowed_routes(controller, options, shallow_options, allowed, not_allowed, path = controller)
|
1324
|
-
shallow_path = "#{path}/#{shallow_options[:id]}"
|
1325
|
-
format = options[:format] && ".#{options[:format]}"
|
1326
|
-
options.merge!(controller: controller)
|
1327
|
-
shallow_options.merge!(options)
|
1328
|
-
|
1329
|
-
assert_whether_allowed(allowed, not_allowed, options, "index", "#{path}#{format}", :get)
|
1330
|
-
assert_whether_allowed(allowed, not_allowed, options, "new", "#{path}/new#{format}", :get)
|
1331
|
-
assert_whether_allowed(allowed, not_allowed, options, "create", "#{path}#{format}", :post)
|
1332
|
-
assert_whether_allowed(allowed, not_allowed, shallow_options, "show", "#{shallow_path}#{format}", :get)
|
1333
|
-
assert_whether_allowed(allowed, not_allowed, shallow_options, "edit", "#{shallow_path}/edit#{format}", :get)
|
1334
|
-
assert_whether_allowed(allowed, not_allowed, shallow_options, "update", "#{shallow_path}#{format}", :put)
|
1335
|
-
assert_whether_allowed(allowed, not_allowed, shallow_options, "destroy", "#{shallow_path}#{format}", :delete)
|
1336
|
-
end
|
1337
|
-
|
1338
|
-
def assert_singleton_resource_allowed_routes(controller, options, allowed, not_allowed, path = controller.singularize)
|
1339
|
-
format = options[:format] && ".#{options[:format]}"
|
1340
|
-
options.merge!(controller: controller)
|
1341
|
-
|
1342
|
-
assert_whether_allowed(allowed, not_allowed, options, "new", "#{path}/new#{format}", :get)
|
1343
|
-
assert_whether_allowed(allowed, not_allowed, options, "create", "#{path}#{format}", :post)
|
1344
|
-
assert_whether_allowed(allowed, not_allowed, options, "show", "#{path}#{format}", :get)
|
1345
|
-
assert_whether_allowed(allowed, not_allowed, options, "edit", "#{path}/edit#{format}", :get)
|
1346
|
-
assert_whether_allowed(allowed, not_allowed, options, "update", "#{path}#{format}", :put)
|
1347
|
-
assert_whether_allowed(allowed, not_allowed, options, "destroy", "#{path}#{format}", :delete)
|
1348
|
-
end
|
1349
|
-
|
1350
|
-
def assert_whether_allowed(allowed, not_allowed, options, action, path, method)
|
1351
|
-
action = action.to_sym
|
1352
|
-
options = options.merge(action: action.to_s)
|
1353
|
-
path_options = { path: path, method: method }
|
1354
|
-
|
1355
|
-
if Array(allowed).include?(action)
|
1356
|
-
assert_recognizes options, path_options
|
1357
|
-
elsif Array(not_allowed).include?(action)
|
1358
|
-
assert_not_recognizes options, path_options
|
1359
|
-
else
|
1360
|
-
raise Assertion, "Invalid Action has passed"
|
1361
|
-
end
|
1362
|
-
end
|
1363
|
-
|
1364
|
-
def assert_not_recognizes(expected_options, path)
|
1365
|
-
assert_raise Assertion do
|
1366
|
-
assert_recognizes(expected_options, path)
|
1367
|
-
end
|
1368
|
-
end
|
1369
|
-
end
|