diff options
author | Noah Kantrowitz <noah@coderanger.net> | 2017-04-03 15:58:52 -0500 |
---|---|---|
committer | Noah Kantrowitz <noah@coderanger.net> | 2017-04-03 15:58:52 -0500 |
commit | e80e68c4bb4c9efa66d9daedc5082036aefeff49 (patch) | |
tree | 8565266e38b2d723e307847f7d1c512045eee26f /spec/unit/formatters | |
parent | 18998d2b46740774d22deaafc6f0689d042a33d5 (diff) | |
download | chef-e80e68c4bb4c9efa66d9daedc5082036aefeff49.tar.gz |
Chefstyle fixes.
Signed-off-by: Noah Kantrowitz <noah@coderanger.net>
Diffstat (limited to 'spec/unit/formatters')
-rw-r--r-- | spec/unit/formatters/error_description_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/unit/formatters/error_description_spec.rb b/spec/unit/formatters/error_description_spec.rb index fd2b0334b0..cf6372ed49 100644 --- a/spec/unit/formatters/error_description_spec.rb +++ b/spec/unit/formatters/error_description_spec.rb @@ -53,13 +53,13 @@ describe Chef::Formatters::ErrorDescription do stub_const("RUBY_DESCRIPTION", "ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-darwin15]") allow(subject).to receive(:caller) { Kernel.caller + ["/test/bin/chef-client:1:in `<main>'"] } allow(File).to receive(:realpath).and_call_original - allow(File).to receive(:realpath).with('/test/bin/chef-client').and_return('/test/bin/chef-client') + allow(File).to receive(:realpath).with("/test/bin/chef-client").and_return("/test/bin/chef-client") end around do |ex| old_program_name = $PROGRAM_NAME begin - $PROGRAM_NAME = 'chef-client' + $PROGRAM_NAME = "chef-client" ex.run ensure $PROGRAM_NAME = old_program_name @@ -117,7 +117,7 @@ executable=/test/bin/chef-client it "should output the expected sections" do # This can't be in a before block because the spec-wide helper calls a # reset on global values. - Chef.set_node({"platform" => "openvms", "platform_version" => "8.4-2L1"}) + Chef.set_node({ "platform" => "openvms", "platform_version" => "8.4-2L1" }) subject.display(out) expect(out.out.string).to eq <<-END ================================================================================ |