Class: Factbook::Test

Inherits:
Object
  • Object
show all
Defined in:
lib/factbook-codes.rb

Overview

let’s put test configuration in its own namespace / module

Class Method Summary collapse

Class Method Details

.data_dirObject

todo/fix: find a better way to configure shared test datasets - why? why not?

note: use one-up (..) directory for now as default - why? why not?


34
# File 'lib/factbook-codes.rb', line 34

def self.data_dir()        @data_dir ||= '../testdata'; end

.data_dir=(path) ⇒ Object



35
# File 'lib/factbook-codes.rb', line 35

def self.data_dir=( path ) @data_dir = path; end