diff options
Diffstat (limited to 'railties/test')
-rw-r--r-- | railties/test/railties/engine_test.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/railties/test/railties/engine_test.rb b/railties/test/railties/engine_test.rb index 47a38d7aeb..cda1d12fa8 100644 --- a/railties/test/railties/engine_test.rb +++ b/railties/test/railties/engine_test.rb @@ -287,6 +287,7 @@ module RailtiesTest @plugin.write "public/bukkits.html", "/bukkits/bukkits.html" app_file "public/app.html", "/app.html" + app_file "public/bukkits/file_from_app.html", "/bukkits/file_from_app.html" boot_rails @@ -297,6 +298,10 @@ module RailtiesTest env = Rack::MockRequest.env_for("/bukkits/bukkits.html") response = Rails.application.call(env) assert_equal response[2].path, File.join(@plugin.path, "public/bukkits.html") + + env = Rack::MockRequest.env_for("/bukkits/file_from_app.html") + response = Rails.application.call(env) + assert_equal response[2].path, File.join(app_path, "public/bukkits/file_from_app.html") end test "shared engine should include application's helpers" do |