benchmark

benchmark(cmd) Instance Public methods

mkpath

mkpath(list, options = {}) Class Public methods Alias for: mkdir_p

build

build(*args, &block) Instance Public methods Alias for: new

digest

digest_obj.digest â stringdigest_obj.digest(string) â string Instance Public methods If none is given, returns the resulting hash value of the digest, keeping the digest's state. If a string is given, returns the hash value for the given string, resetting the digest to the initial state before and after the process.

authenticate

authenticate(request, &login_procedure) Instance Public methods

history_configinfo

history_configinfo(opt) Instance Public methods

to_a

name.to_a => [[name, data, type], ...] Instance Public methods Returns an Array representation of the distinguished name suitable for passing to ::new

protect_against_forgery?

protect_against_forgery?() Instance Protected methods Checks if the controller allows forgery protection.

transfer_stdin 2

transfer_stdin(dist, src = '') Instance Public methods

fixture_file_upload

fixture_file_upload(path, mime_type = nil, binary = false) Instance Public methods Shortcut for Rack::Test::UploadedFile.new(File.join(ActionController::TestCase.fixture_path, path), type): post :change_avatar, avatar: fixture_file_upload('files/spongebob.png', 'image/png') To upload binary files on Windows, pass :binary as the last parameter. This will not affect other platforms: post :change_avatar, avatar: fixture_file_upload('files/spongebob.png', 'image/png', :binary)