Sha256: ed388c382e550024e546255a92ba9076a66f41d374865408d791b467fd92ea01
Contents?: true
Size: 680 Bytes
Versions: 7
Compression:
Stored size: 680 Bytes
Contents
require 'rubygems' require 'test/unit' require 'webmock' require 'yaml' include WebMock require 'streambot' module StreamBot # The base of all tests in this projet # # class TestName < StreamBot::BaseTest # # def setup # super # # implementation goes here # end # end class BaseTest < Test::Unit::TestCase # reading config.yml and assign all keys to instance def read_config yml_config = YAML.load_file(File.dirname(__FILE__) + "/config.yml") yml_config.each do |key, value| instance_variable_set("@#{key}", value) end end # :nodoc: def setup self.read_config end end end
Version data entries
7 entries across 7 versions & 1 rubygems