diff options
author | Carlhuda <carlhuda@engineyard.com> | 2010-02-23 15:37:17 -0800 |
---|---|---|
committer | Carlhuda <carlhuda@engineyard.com> | 2010-02-23 15:37:17 -0800 |
commit | 3345af61fb128d0a70793b235e3cb878781d6f40 (patch) | |
tree | 13f658ed836dc7d8c15eb9486cef39f340496722 /activesupport/test/core_ext | |
parent | ee541049fdbe5eeebcca2f3b83144a5d803345a9 (diff) | |
download | rails-3345af61fb128d0a70793b235e3cb878781d6f40.tar.gz rails-3345af61fb128d0a70793b235e3cb878781d6f40.tar.bz2 rails-3345af61fb128d0a70793b235e3cb878781d6f40.zip |
Fix streaming by having it create a File object, which can be handled by Rack servers as appropriate
Diffstat (limited to 'activesupport/test/core_ext')
-rw-r--r-- | activesupport/test/core_ext/file_test.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/activesupport/test/core_ext/file_test.rb b/activesupport/test/core_ext/file_test.rb index 26be694176..e1258b872e 100644 --- a/activesupport/test/core_ext/file_test.rb +++ b/activesupport/test/core_ext/file_test.rb @@ -57,6 +57,10 @@ class AtomicWriteTest < Test::Unit::TestCase File.unlink(file_name) rescue nil end + def test_responds_to_to_path + assert_equal __FILE__, File.open(__FILE__, "r").to_path + end + private def file_name "atomic.file" |