module TestFileUtils

Public Instance Methods

file_data() click to toggle source
# File actionpack/test/controller/send_file_test.rb, line 8
def file_data() @data ||= File.open(file_path, "rb") { |f| f.read } end
file_name() click to toggle source
# File actionpack/test/controller/send_file_test.rb, line 6
def file_name() File.basename(__FILE__) end
file_path() click to toggle source
# File actionpack/test/controller/send_file_test.rb, line 7
def file_path() __FILE__ end