summaryrefslogtreecommitdiff
path: root/acceptance/fips
diff options
context:
space:
mode:
authorJay Mundrawala <jdmundrawala@gmail.com>2016-02-24 11:43:49 -0800
committerJay Mundrawala <jdmundrawala@gmail.com>2016-02-25 16:09:51 -0800
commit3b82bb9f89c0f95d4ba94591e9ac9e769477eb64 (patch)
treecae71fce97a1cb66b7d5ca88a0b1ea09cfa72579 /acceptance/fips
parent3f9301526e6774c7e7e3b4081c9715978ab3ecd2 (diff)
downloadchef-3b82bb9f89c0f95d4ba94591e9ac9e769477eb64.tar.gz
Fix things rubocop complains about
Diffstat (limited to 'acceptance/fips')
-rw-r--r--acceptance/fips/test/integration/fips/serverspec/Gemfile2
-rw-r--r--acceptance/fips/test/integration/fips/serverspec/fips_spec.rb18
2 files changed, 10 insertions, 10 deletions
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