module BitGirder::Testing
Constants
- ENV_TEST_DATA_PATH
Public Class Methods
find_test_data( name )
click to toggle source
# File lib/bitgirder/testing.rb, line 8 def self.find_test_data( name ) ( ENV[ ENV_TEST_DATA_PATH ] || "" ).split( ":" ). map { |path| "#{path}/#{name}" }. find { |f| File.exists?( f ) } or raise "No #{name} found on path $#{ENV_TEST_DATA_PATH}" end