Sha256: 03c9392a002d8ef5c072adbda0d43e5f847b046d626cb128a60cc2c813f8f300
Contents?: true
Size: 826 Bytes
Versions: 8
Compression:
Stored size: 826 Bytes
Contents
require 'rubygems' require 'bundler' begin Bundler.setup(:default, :development) rescue Bundler::BundlerError => e $stderr.puts e.message $stderr.puts "Run `bundle install` to install missing gems" exit e.status_code end require 'minitest/unit' require 'mocha' $LOAD_PATH.unshift(File.dirname(__FILE__)) $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) require 'voyager_oracle_api' class MiniTest::Unit::TestCase include Voyager def load_oracle_fixture(name) filename = File.join(File.dirname(__FILE__), "fixtures", "#{name}.json") raise "Filename #{filename} does not exist" unless File.exists?(filename) con = OracleConnection.new('connection' => nil) con.results = JSON.parse(File.open(filename, "r").read) return con end end MiniTest::Unit.autorun
Version data entries
8 entries across 8 versions & 1 rubygems