diff options
author | Piotr Sarnacki <drogus@gmail.com> | 2010-08-04 22:22:06 +0200 |
---|---|---|
committer | Piotr Sarnacki <drogus@gmail.com> | 2010-09-03 22:59:12 +0200 |
commit | 8284fd38551c00c30cf89fa22d1afd503a08c516 (patch) | |
tree | 71a7ecc2879c088578bfe5d16072e1eb4eacfa00 /railties/test | |
parent | d81267727770198f4aa0cefede042c8d0c638c59 (diff) | |
download | rails-8284fd38551c00c30cf89fa22d1afd503a08c516.tar.gz rails-8284fd38551c00c30cf89fa22d1afd503a08c516.tar.bz2 rails-8284fd38551c00c30cf89fa22d1afd503a08c516.zip |
Get rid of static_paths method and instead configure paths for ActionDispatch::Static in initializers
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 |