Sha256: 1d81483adfa62f52107d9f1d5a91eabcd2cceb97f609f4b0aa2b6d3409cb27a6
Contents?: true
Size: 510 Bytes
Versions: 1
Compression:
Stored size: 510 Bytes
Contents
module RSpec module Hive module WithHiveConnection def hive Hive.connector end def connection @connection ||= hive.start_connection end def self.included(mod) mod.before(:all) do connection end mod.before(:each) do connection.switch_database(DbName.random_name) end mod.after(:all) do hive.stop_connection(connection) unless hive && connection end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rspec-hive-0.1.0 | lib/rspec/hive/with_hive_connection.rb |