summaryrefslogtreecommitdiff
path: root/spec/mixlib
diff options
context:
space:
mode:
authorThom May <thom@chef.io>2018-02-28 14:28:05 +0000
committerThom May <thom@chef.io>2018-02-28 14:41:17 +0000
commit6146ee2d6b8e4d8125b66819bb6ab8d6152d859c (patch)
tree385e679b5b4aa0a5602c073deddcb1c2b0b5ac02 /spec/mixlib
parent38b2ec3bcbbb63516cc8aa8867dfe1d242d2ea22 (diff)
downloadmixlib-log-6146ee2d6b8e4d8125b66819bb6ab8d6152d859c.tar.gz
enable metadata to be got and set
Signed-off-by: Thom May <thom@chef.io>
Diffstat (limited to 'spec/mixlib')
-rw-r--r--spec/mixlib/log_spec.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/mixlib/log_spec.rb b/spec/mixlib/log_spec.rb
index 5798a90..60da408 100644
--- a/spec/mixlib/log_spec.rb
+++ b/spec/mixlib/log_spec.rb
@@ -213,4 +213,10 @@ RSpec.describe Mixlib::Log do
expect(Logit.fatal("hello")).to be_nil
end
end
+
+ it "should set metadata correctly" do
+ Logit.metadata = { test: "data" }
+ expect(Logit.metadata).to eql({ test: "data" })
+ end
+
end