aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/railties
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2019-02-11 12:44:25 -0800
committerXavier Noria <fxn@hashref.com>2019-02-12 02:28:04 -0800
commit821d6c694cd305b7792b96d6ebc1c15ca235cf3e (patch)
treecb72d427f1744ad5a5c7dc901cb53db63c94a591 /railties/test/railties
parentad3cbc2452e8150542ecb539925396361f12534c (diff)
downloadrails-821d6c694cd305b7792b96d6ebc1c15ca235cf3e.tar.gz
rails-821d6c694cd305b7792b96d6ebc1c15ca235cf3e.tar.bz2
rails-821d6c694cd305b7792b96d6ebc1c15ca235cf3e.zip
Zeitwerk integration
Diffstat (limited to 'railties/test/railties')
-rw-r--r--railties/test/railties/engine_test.rb32
1 files changed, 17 insertions, 15 deletions
diff --git a/railties/test/railties/engine_test.rb b/railties/test/railties/engine_test.rb
index 851407dede..69f6e34d58 100644
--- a/railties/test/railties/engine_test.rb
+++ b/railties/test/railties/engine_test.rb
@@ -704,25 +704,27 @@ YAML
RUBY
@plugin.write "app/controllers/bukkits/foo_controller.rb", <<-RUBY
- class Bukkits::FooController < ActionController::Base
- def index
- render inline: "<%= help_the_engine %>"
- end
+ module Bukkits
+ class FooController < ActionController::Base
+ def index
+ render inline: "<%= help_the_engine %>"
+ end
- def show
- render plain: foo_path
- end
+ def show
+ render plain: foo_path
+ end
- def from_app
- render inline: "<%= (self.respond_to?(:bar_path) || self.respond_to?(:something)) %>"
- end
+ def from_app
+ render inline: "<%= (self.respond_to?(:bar_path) || self.respond_to?(:something)) %>"
+ end
- def routes_helpers_in_view
- render inline: "<%= foo_path %>, <%= main_app.bar_path %>"
- end
+ def routes_helpers_in_view
+ render inline: "<%= foo_path %>, <%= main_app.bar_path %>"
+ end
- def polymorphic_path_without_namespace
- render plain: polymorphic_path(Post.new)
+ def polymorphic_path_without_namespace
+ render plain: polymorphic_path(Post.new)
+ end
end
end
RUBY