diff options
author | Thom May <thom@may.lt> | 2015-05-20 10:06:52 +0100 |
---|---|---|
committer | Thom May <thom@may.lt> | 2015-05-20 10:06:52 +0100 |
commit | 75635d898b2898f9b69efec1f6d56bde19757838 (patch) | |
tree | 82e190bf8e9328a03a102e7b43b9291bf9d4a97c | |
parent | 0f5a73e0e2f65f89bfdbc0beca064d2fd187cdf0 (diff) | |
download | ohai-75635d898b2898f9b69efec1f6d56bde19757838.tar.gz |
Add failing test for ignored DMI information
-rw-r--r-- | spec/unit/plugins/dmi_spec.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/spec/unit/plugins/dmi_spec.rb b/spec/unit/plugins/dmi_spec.rb index 3814920e..a97c5ea6 100644 --- a/spec/unit/plugins/dmi_spec.rb +++ b/spec/unit/plugins/dmi_spec.rb @@ -73,6 +73,15 @@ Base Board Information Type: Unknown Contained Object Handles: 0 +Handle 0x1000, DMI type 16, 15 bytes +Physical Memory Array + Location: Other + Use: System Memory + Error Correction Type: Multi-bit ECC + Maximum Capacity: 2 GB + Error Information Handle: Not Provided + Number Of Devices: 1 + Handle 0x0003, DMI type 3, 21 bytes Chassis Information Manufacturer: No Enclosure @@ -131,4 +140,9 @@ describe Ohai::System, "plugin dmi" do end end end + + it "should correctly ignore unwanted data" do + @plugin.run + expect(@plugin[:dmi][:base_board]).not_to have_key(:error_correction_type) + end end |