Ravn::
SpecHelpers module
Some helper functions for testing. Usage:
# in spec/spec_helper.rb RSpec.configure do |c| c.include( Ravn::SpecHelpers
) end
Constants
- DEFAULT_TEST_CONFIG
The path to the testing config file, relative to the base of the project.
- HELPER_MODULES
Helper modules
- LOCAL_TEST_CONFIG
The path to the local config file.
Public Class Methods
Inclusion callback – install some hooks
Load and install a Ravn
config from the configfile
specified. If no configfile is specified, it will first look for a file at the LOCAL_TEST_CONFIG
. If it doesn’t exist, the DEFAULT_TEST_CONFIG
will be checked. If that too doesn’t exist, then nil
is passed to Ravn.load_config
, which will use non-test-specific config files.
Alias the device ID setup method.