Top Level Namespace

Defined Under Namespace

Modules: ContextSpook

Instance Method Summary collapse

Instance Method Details

#asset(name) ⇒ String

The asset method constructs a file path by joining the directory of the current file, an ‘assets’ subdirectory, and the provided filename.

Parameters:

  • name (String)

    the name of the asset file to be located

Returns:

  • (String)

    the complete file path to the asset



17
18
19
# File 'spec/spec_helper.rb', line 17

def asset(name)
  File.join(__dir__, 'assets', name)
end