From 1cfa3252ce9475c05f4e0df3badb3bb294c9f508 Mon Sep 17 00:00:00 2001 From: Anirudh Gupta Date: Wed, 21 Sep 2016 11:33:17 +0530 Subject: [PATCH] making the examples in the code consistent with rst docs --- lib/resources/gem.rb | 1 + lib/resources/oneget.rb | 1 + lib/resources/os.rb | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) 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