aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/application
diff options
context:
space:
mode:
authoreileencodes <eileencodes@gmail.com>2015-03-20 08:14:59 -0400
committereileencodes <eileencodes@gmail.com>2015-03-20 08:48:04 -0400
commitc757e9b60a71e585f48c8b9426ab3d979a5967ee (patch)
treefb55ef6ce020032e60c671434bce1727b4d2d4d3 /railties/test/application
parent0755d300170d1ef2f6d78f76d0126e962167be5a (diff)
downloadrails-c757e9b60a71e585f48c8b9426ab3d979a5967ee.tar.gz
rails-c757e9b60a71e585f48c8b9426ab3d979a5967ee.tar.bz2
rails-c757e9b60a71e585f48c8b9426ab3d979a5967ee.zip
Remove `#build_original_fullpath` method
Removing `#build_original_fullpath` because it is no longer used by the Rails' source code or called in the `#call` method becasue the previous commit now uses `fullpath` from Rack. The method was nodoc'ed so it's safe to remove. NOTE: I did this as a separate commit so if this does cause a problem with engines etc reverting is easy.
Diffstat (limited to 'railties/test/application')
-rw-r--r--railties/test/application/build_original_fullpath_test.rb27
1 files changed, 0 insertions, 27 deletions
diff --git a/railties/test/application/build_original_fullpath_test.rb b/railties/test/application/build_original_fullpath_test.rb
deleted file mode 100644
index 647ffb097a..0000000000
--- a/railties/test/application/build_original_fullpath_test.rb
+++ /dev/null
@@ -1,27 +0,0 @@
-require "abstract_unit"
-
-module ApplicationTests
- class BuildOriginalPathTest < ActiveSupport::TestCase
- def test_include_original_PATH_info_in_ORIGINAL_FULLPATH
- env = { 'PATH_INFO' => '/foo/' }
- assert_equal "/foo/", Rails.application.send(:build_original_fullpath, env)
- end
-
- def test_include_SCRIPT_NAME
- env = {
- 'SCRIPT_NAME' => '/foo',
- 'PATH_INFO' => '/bar'
- }
-
- assert_equal "/foo/bar", Rails.application.send(:build_original_fullpath, env)
- end
-
- def test_include_QUERY_STRING
- env = {
- 'PATH_INFO' => '/foo',
- 'QUERY_STRING' => 'bar',
- }
- assert_equal "/foo?bar", Rails.application.send(:build_original_fullpath, env)
- end
- end
-end