diff options
author | Pratik Naik <pratiknaik@gmail.com> | 2009-05-22 00:26:58 +0200 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2009-05-22 00:29:47 +0200 |
commit | 1a52b246eb245d159a1c331417a4b14923e9bc4e (patch) | |
tree | eaaa878b082b0a4b70bd4146d0cf22ccdce13491 /actionpack/test/controller/send_file_test.rb | |
parent | d2cac9dd0e28b99bd45fd9eaa1d5a6b3dee8fa8f (diff) | |
download | rails-1a52b246eb245d159a1c331417a4b14923e9bc4e.tar.gz rails-1a52b246eb245d159a1c331417a4b14923e9bc4e.tar.bz2 rails-1a52b246eb245d159a1c331417a4b14923e9bc4e.zip |
Add HTTP Authentication to the new base
Diffstat (limited to 'actionpack/test/controller/send_file_test.rb')
-rw-r--r-- | actionpack/test/controller/send_file_test.rb | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/actionpack/test/controller/send_file_test.rb b/actionpack/test/controller/send_file_test.rb index 3a99774ae0..0bc0eb2df6 100644 --- a/actionpack/test/controller/send_file_test.rb +++ b/actionpack/test/controller/send_file_test.rb @@ -11,12 +11,17 @@ class SendFileController < ActionController::Base layout "layouts/standard" # to make sure layouts don't interfere attr_writer :options - def options() @options ||= {} end + def options + @options ||= {} + end - def file() send_file(file_path, options) end - def data() send_data(file_data, options) end + def file + send_file(file_path, options) + end - def rescue_action(e) raise end + def data + send_data(file_data, options) + end end class SendFileTest < ActionController::TestCase |