Module: OpenHAB::RSpec::Configuration

Defined in:
lib/openhab/rspec/configuration.rb

Overview

Contains configuration for how the openHAB instance should be set up for the testing environment.

Class Attribute Summary collapse

Class Attribute Details

.include_bindingstrue, false

Copy binding configuration from the root openHAB instance.

Default true.

Returns:

  • (true, false)


17
18
19
# File 'lib/openhab/rspec/configuration.rb', line 17

def include_bindings
  @include_bindings
end

.include_jsondbtrue, false

Copy the JSONDB (managed thing and item configuration) from the root openHAB instance.

Default true.

Returns:

  • (true, false)


27
28
29
# File 'lib/openhab/rspec/configuration.rb', line 27

def include_jsondb
  @include_jsondb
end

.private_confdirtrue, false

Use a private (empty) confdir (scripts, rules, items, and things files), instead of sharing with the root openHAB instance.

Default false.

Returns:

  • (true, false)


37
38
39
# File 'lib/openhab/rspec/configuration.rb', line 37

def private_confdir
  @private_confdir
end

.use_root_instancetrue, false

Use the root openHAB instance directly, rather than creating a private (but linked) instance.

Default false.

Returns:

  • (true, false)


47
48
49
# File 'lib/openhab/rspec/configuration.rb', line 47

def use_root_instance
  @use_root_instance
end