summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
Diffstat (limited to 'spec')
-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