From 3b82bb9f89c0f95d4ba94591e9ac9e769477eb64 Mon Sep 17 00:00:00 2001 From: Jay Mundrawala Date: Wed, 24 Feb 2016 11:43:49 -0800 Subject: Fix things rubocop complains about --- .../fips/test/integration/fips/serverspec/Gemfile | 2 +- .../fips/test/integration/fips/serverspec/fips_spec.rb | 18 +++++++++--------- 2 files changed, 10 insertions(+), 10 deletions(-) (limited to 'acceptance/fips') diff --git a/acceptance/fips/test/integration/fips/serverspec/Gemfile b/acceptance/fips/test/integration/fips/serverspec/Gemfile index ecaf4de586..3921e6a92a 100644 --- a/acceptance/fips/test/integration/fips/serverspec/Gemfile +++ b/acceptance/fips/test/integration/fips/serverspec/Gemfile @@ -1,3 +1,3 @@ source "https://rubygems.org" -gem 'mixlib-shellout' +gem "mixlib-shellout" diff --git a/acceptance/fips/test/integration/fips/serverspec/fips_spec.rb b/acceptance/fips/test/integration/fips/serverspec/fips_spec.rb index 987b3d8766..89a10dcf68 100644 --- a/acceptance/fips/test/integration/fips/serverspec/fips_spec.rb +++ b/acceptance/fips/test/integration/fips/serverspec/fips_spec.rb @@ -1,5 +1,5 @@ -require 'mixlib/shellout' -require 'bundler' +require "mixlib/shellout" +require "bundler" describe "Chef Fips Specs" do def windows? @@ -12,9 +12,9 @@ describe "Chef Fips Specs" do let(:chef_dir) do if windows? - Dir.glob('c:/opscode/chef/embedded/lib/ruby/gems/*/gems/chef-[0-9]*').last + Dir.glob("c:/opscode/chef/embedded/lib/ruby/gems/*/gems/chef-[0-9]*").last else - Dir.glob('/opt/chef/embedded/lib/ruby/gems/*/gems/chef-[0-9]*').last + Dir.glob("/opt/chef/embedded/lib/ruby/gems/*/gems/chef-[0-9]*").last end end @@ -26,13 +26,13 @@ describe "Chef Fips Specs" do end end - it 'passes the unit and functional specs' do + it "passes the unit and functional specs" do Bundler.with_clean_env do ruby_cmd = Mixlib::ShellOut.new( - 'bundle exec rspec spec/unit spec/functional', :env => {'PATH' => "#{ENV['PATH']}:#{path}", - 'GEM_PATH' => nil, 'GEM_CACHE'=>nil, 'GEM_HOME'=>nil, - 'CHEF_FIPS'=>'1'}, - :live_stream => STDOUT, :cwd => chef_dir) + "bundle exec rspec spec/unit spec/functional", :env => { "PATH" => "#{ENV['PATH']}:#{path}", + "GEM_PATH" => nil, "GEM_CACHE" => nil, "GEM_HOME" => nil, + "CHEF_FIPS" => "1" }, + :live_stream => STDOUT, :cwd => chef_dir) expect { ruby_cmd.run_command.error! }.not_to raise_exception end end -- cgit v1.2.1