From 8284fd38551c00c30cf89fa22d1afd503a08c516 Mon Sep 17 00:00:00 2001 From: Piotr Sarnacki Date: Wed, 4 Aug 2010 22:22:06 +0200 Subject: Get rid of static_paths method and instead configure paths for ActionDispatch::Static in initializers --- railties/test/railties/engine_test.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'railties/test') 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 -- cgit v1.2.3