diff options
author | Tim Smith <tsmith@chef.io> | 2017-04-03 13:01:49 -0700 |
---|---|---|
committer | Tim Smith <tsmith@chef.io> | 2017-04-03 13:01:49 -0700 |
commit | 9ece94f53682c728c9eaf89157e80c6822928519 (patch) | |
tree | ad96fc96e1f7ecc1f58d4eb06f5c5d1ab7d6137a | |
parent | 7a94bb86fff2f8caea958b5dc386bbaa3eb50f67 (diff) | |
download | ohai-9ece94f53682c728c9eaf89157e80c6822928519.tar.gz |
Ensure we’re populating filesystem as well as filesystem_2
Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r-- | spec/unit/plugins/linux/filesystem2_spec.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/unit/plugins/linux/filesystem2_spec.rb b/spec/unit/plugins/linux/filesystem2_spec.rb index d822c8e8..19bdde12 100644 --- a/spec/unit/plugins/linux/filesystem2_spec.rb +++ b/spec/unit/plugins/linux/filesystem2_spec.rb @@ -52,6 +52,12 @@ describe Ohai::System, "Linux filesystem plugin" do end end + it "sets both filesystem and filesystem_v2 attributes" do + plugin.run + expect(plugin[:filesystem]).to_not be_nil + expect(plugin[:filesystem_v2]).to_not be_nil + end + describe "when gathering filesystem usage data from df" do before(:each) do @stdout = <<-DF |