Class: Screengrab::DetectValues

Inherits:
Object
  • Object
show all
Defined in:
screengrab/lib/screengrab/detect_values.rb

Class Method Summary collapse

Class Method Details

.set_additional_default_valuesObject

This is needed to supply default values which are based on config values determined in the initial configuration pass


5
6
7
8
9
10
11
12
13
14
# File 'screengrab/lib/screengrab/detect_values.rb', line 5

def self.set_additional_default_values
  config = Screengrab.config

  # First, try loading the Screengrabfile from the current directory
  config.load_configuration_file(Screengrab.screengrabfile_name)

  unless config[:tests_package_name]
    config[:tests_package_name] = "#{config[:app_package_name]}.test"
  end
end