summaryrefslogtreecommitdiff
path: root/spec/unit/shell/shell_ext_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/unit/shell/shell_ext_spec.rb')
-rw-r--r--spec/unit/shell/shell_ext_spec.rb8
1 files changed, 2 insertions, 6 deletions
diff --git a/spec/unit/shell/shell_ext_spec.rb b/spec/unit/shell/shell_ext_spec.rb
index a418eba217..dabacd4a0a 100644
--- a/spec/unit/shell/shell_ext_spec.rb
+++ b/spec/unit/shell/shell_ext_spec.rb
@@ -20,7 +20,6 @@ require "spec_helper"
describe Shell::Extensions do
describe "extending object for top level methods" do
-
before do
@shell_client = TestableShellSession.instance
allow(Shell).to receive(:session).and_return(@shell_client)
@@ -92,9 +91,9 @@ describe Shell::Extensions do
end
it "prints node attributes" do
- node = double("node", :attribute => {:foo => :bar})
+ node = double("node", :attribute => { :foo => :bar })
@shell_client.node = node
- expect(@root_context).to receive(:pp).with({:foo => :bar})
+ expect(@root_context).to receive(:pp).with({ :foo => :bar })
@root_context.ohai
expect(@root_context).to receive(:pp).with(:bar)
@root_context.ohai(:foo)
@@ -131,11 +130,9 @@ describe Shell::Extensions do
expect(Dir).to receive(:entries).with("/tmp").and_return(entries)
@root_context.ls "/tmp"
end
-
end
describe "extending the recipe object" do
-
before do
@events = Chef::EventDispatch::Dispatcher.new
@run_context = Chef::RunContext.new(Chef::Node.new, {}, @events)
@@ -148,6 +145,5 @@ describe Shell::Extensions do
expect(@recipe_object).to receive(:pp).with(["file[foo]"])
@recipe_object.resources
end
-
end
end