aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/fixtures/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'railties/test/fixtures/plugins')
-rw-r--r--railties/test/fixtures/plugins/engines/engine/app/metal/engine_metal.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/railties/test/fixtures/plugins/engines/engine/app/metal/engine_metal.rb b/railties/test/fixtures/plugins/engines/engine/app/metal/engine_metal.rb
new file mode 100644
index 0000000000..d67a127ca7
--- /dev/null
+++ b/railties/test/fixtures/plugins/engines/engine/app/metal/engine_metal.rb
@@ -0,0 +1,10 @@
+class EngineMetal
+ def self.call(env)
+ if env["PATH_INFO"] =~ /^\/metal/
+ [200, {"Content-Type" => "text/html"}, ["Engine metal"]]
+ else
+ [404, {"Content-Type" => "text/html"}, ["Not Found"]]
+ end
+ end
+end
+