module ReportFactory::Rspec::Configuration

Defines all configurable attributes of ReportFactory::RSpec

Constants

DEFAULT_AUTH_TOKEN
DEFAULT_PROJECT_NAME
DEFAULT_TAGS
DEFAULT_URL
VALID_CONFIG_KEYS

Public Class Methods

extended(base) click to toggle source

Make sure the default values are set when the module is 'extended'

# File lib/report_factory/rspec/configuration.rb, line 20
def self.extended(base)
  base.reset
end

Public Instance Methods

configure() { |self| ... } click to toggle source
# File lib/report_factory/rspec/configuration.rb, line 24
def configure
  yield self
end
reset() click to toggle source
# File lib/report_factory/rspec/configuration.rb, line 28
def reset
  VALID_CONFIG_KEYS.each do |key|
    constant_name = "DEFAULT_#{key}".upcase
    send("#{key}=", self::Configuration.const_get(constant_name))
  end
end