diff --git a/lib/resources/gem.rb b/lib/resources/gem.rb index c34480a46..3cf04e036 100644 --- a/lib/resources/gem.rb +++ b/lib/resources/gem.rb @@ -9,6 +9,7 @@ module Inspec::Resources example " describe gem('rubocop') do it { should be_installed } + its('version') { should eq '0.33.0' } end " diff --git a/lib/resources/oneget.rb b/lib/resources/oneget.rb index 589c98c99..fea2616a7 100644 --- a/lib/resources/oneget.rb +++ b/lib/resources/oneget.rb @@ -16,6 +16,7 @@ module Inspec::Resources example " describe oneget('zoomit') do it { should be_installed } + its('version') { should eq '1.2.3' } end " diff --git a/lib/resources/os.rb b/lib/resources/os.rb index 9b3b07c47..26ac6faf4 100644 --- a/lib/resources/os.rb +++ b/lib/resources/os.rb @@ -7,7 +7,7 @@ module Inspec::Resources name 'os' desc 'Use the os InSpec audit resource to test the platform on which the system is running.' example " - describe os.family do + describe os[:family] do it { should eq 'redhat' } end