diff --git a/test/functional/inspec_exec_test.rb b/test/functional/inspec_exec_test.rb index 68e2e72df2..b4a1d6d2b2 100644 --- a/test/functional/inspec_exec_test.rb +++ b/test/functional/inspec_exec_test.rb @@ -181,7 +181,7 @@ out = inspec('exec ' + File.join(profile_path, 'dependencies', 'resource-namespace')) out.stderr.must_equal '' out.exit_status.must_equal 0 - out.stdout.force_encoding(Encoding::UTF_8).must_include "Summary: \e[32m5 successful\e[0m, \e[31m0 failures\e[0m, \e[37m0 skipped\e[0m\n" + out.stdout.force_encoding(Encoding::UTF_8).must_include "Summary: \e[32m7 successful\e[0m, \e[31m0 failures\e[0m, \e[37m0 skipped\e[0m\n" end end diff --git a/test/unit/mock/profiles/dependencies/resource-namespace/controls/example.rb b/test/unit/mock/profiles/dependencies/resource-namespace/controls/example.rb index dfea69fa74..1b9a5a4e0e 100644 --- a/test/unit/mock/profiles/dependencies/resource-namespace/controls/example.rb +++ b/test/unit/mock/profiles/dependencies/resource-namespace/controls/example.rb @@ -23,4 +23,13 @@ describe resource('profile_c', 'gordon_config') do its('version') { should eq('1.0') } end + + describe resource('profile_c', 'gordon_config') do + its('version') { should eq(gordy_config.version) } + end + + describe resource('profile_c', 'gordon_config') do + its('version') { should eq(resource('profile_c', 'gordon_config').version) } + end + end