diff --git a/support/rebuild_inspec_test_fixture_plugin.sh b/support/rebuild_inspec_test_fixture_plugin.sh index 00a67456a..9e9811706 100755 --- a/support/rebuild_inspec_test_fixture_plugin.sh +++ b/support/rebuild_inspec_test_fixture_plugin.sh @@ -10,7 +10,7 @@ FIXTURE_BASE=test/fixtures/config_dirs FIXTURE_VERSIONS="1 2" # The format here is ", <"" -RUBY_VERSIONS="2.4.5,2.4.0 2.5.3,2.5.0 2.6.2,2.6.0" +RUBY_VERSIONS="2.5.3,2.5.0 2.6.2,2.6.0" # Make two fresh gems cd $PLUGIN_SRC_DIR diff --git a/test/functional/inspec_exec_test.rb b/test/functional/inspec_exec_test.rb index f1872ff4a..374767d4e 100644 --- a/test/functional/inspec_exec_test.rb +++ b/test/functional/inspec_exec_test.rb @@ -962,8 +962,7 @@ Test Summary: 2 successful, 0 failures, 0 skipped\n" describe "when specifying the execution target" do let(:local_plat) do json = run_inspec_process("detect --format json", {}).stdout - # .slice is available in ruby 2.5+ - JSON.parse(json).select { |k, v| %w{name release}.include? k } + JSON.parse(json).slice("name", "release") end let(:run_result) { run_inspec_process("exec " + File.join(profile_path, "simple-metadata") + " " + cli_args, json: true) } let(:seen_platform) { run_result; @json["platform"].select { |k, v| %w{name release target_id}.include? k } }