require 'yaml' require 'helper' class IntegrationTest < MiniTest::Test class << self attr_accessor :api end def accounts skip if ENV['SKIP_INTEGRATION'] YAML.load_file(File.expand_path('../fixtures/mws.yml', __FILE__)) rescue Errno::ENOENT skip('Credentials missing') end def setup @clients = accounts.map { |mws| self.class.api.const_get(:Client).new(*mws.values) } end end