rspec-openhab-scripting 0.0.8-java → 0.0.9-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rspec/openhab/version.rb +1 -1
- data/lib/rspec-openhab-scripting.rb +5 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ec85830015f39fcbcf027f869f5af4b215717b1c027deb47959428a8f156b652
|
4
|
+
data.tar.gz: 22050257da398fa958a657e69c773f27e215e2d478bacb9d9e1400f84b0c6191
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d29f9f59280c73b33cb7caef1bbde2baf7b1931bbf9c8fdd8ccb51c3ec8ec13bf9efe51d6e13a410fadd9a53bf78928f22cdc25917ee37d64dc66906fc47bcfc
|
7
|
+
data.tar.gz: b0132dec180bf8e9bf6fca0e8223c67e6fda04529f376f74a9b2405c0defd01bf1661fed63534a15ccf4392440a4faefe8936f4a42428af8de1be5c6778755d8
|
@@ -58,6 +58,8 @@ end
|
|
58
58
|
# global variables need to be set up before openhab-scripting loads
|
59
59
|
require "openhab/log/logger"
|
60
60
|
require "rspec/openhab/core/logger"
|
61
|
+
# during testing, we don't want "regular" output from rules
|
62
|
+
OpenHAB::Log.logger("org.openhab.automation.jruby.runtime").level = :warn
|
61
63
|
require "openhab/dsl/imports"
|
62
64
|
OpenHAB::DSL::Imports.api = api
|
63
65
|
OpenHAB::DSL::Imports.import_presets
|
@@ -75,6 +77,9 @@ require "rspec/openhab/state"
|
|
75
77
|
require "rspec/openhab/timer"
|
76
78
|
require "rspec/openhab/trigger"
|
77
79
|
require "rspec/openhab/wait"
|
80
|
+
RSpec.configure do |config|
|
81
|
+
config.include OpenHAB::Core::EntityLookup
|
82
|
+
end
|
78
83
|
|
79
84
|
RSpec::OpenHAB::Items.populate_items_from_api(api)
|
80
85
|
|