Sha256: 557907c7d145da21d6bf4aac3bbd5e230a07f190914f5baa44bdfb6204eb5343

Contents?: true

Size: 740 Bytes

Versions: 1

Compression:

Stored size: 740 Bytes

Contents

require 'rspec/hive/version'
require 'rspec/hive/db_name'
require 'rspec/hive/configuration'
require 'rspec/hive/connection_delegator'
require 'rspec/hive/connector'
require 'rspec/hive/with_hive_connection'

module RSpec
  module Hive
    attr_reader :configuration

    def self.configure(file_name = nil)
      @configuration = new_configuration(file_name)
      yield(@configuration) if block_given?
      @configuration
    end

    def self.connector
      @configuration ||= Configuration.new
      Connector.new(@configuration)
    end

    def self.new_configuration(file_name)
      Configuration.new(file_name)
    end

    private_class_method :new_configuration
  end
end

require 'rspec/rake_tasks/railtie' if defined?(Rails)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rspec-hive-0.1.0 lib/rspec/hive.rb