Module: RSpec::Hive

Defined in:
lib/rspec/hive.rb,
lib/rspec/hive/db_name.rb,
lib/rspec/hive/version.rb,
lib/rspec/hive/connector.rb,
lib/rspec/hive/configuration.rb,
lib/rspec/rake_tasks/railtie.rb,
lib/rspec/hive/connection_delegator.rb,
lib/rspec/hive/with_hive_connection.rb

Defined Under Namespace

Modules: WithHiveConnection Classes: Configuration, ConnectionDelegator, Connector, DbName, Railtie

Constant Summary collapse

VERSION =
'0.1.0'

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#configurationObject (readonly)

Returns the value of attribute configuration.



10
11
12
# File 'lib/rspec/hive.rb', line 10

def configuration
  @configuration
end

Class Method Details

.configure(file_name = nil) {|@configuration| ... } ⇒ Object

Yields:



12
13
14
15
16
# File 'lib/rspec/hive.rb', line 12

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

.connectorObject



18
19
20
21
# File 'lib/rspec/hive.rb', line 18

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