diff options
Diffstat (limited to 'spec/unit/shell/shell_session_spec.rb')
-rw-r--r-- | spec/unit/shell/shell_session_spec.rb | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/spec/unit/shell/shell_session_spec.rb b/spec/unit/shell/shell_session_spec.rb index 289bf35313..c286f12cd8 100644 --- a/spec/unit/shell/shell_session_spec.rb +++ b/spec/unit/shell/shell_session_spec.rb @@ -18,9 +18,7 @@ require "spec_helper" require "ostruct" - class TestableShellSession < Shell::ShellSession - def rebuild_node nil end @@ -36,15 +34,12 @@ class TestableShellSession < Shell::ShellSession def loading_complete nil end - end describe Shell::ShellSession do - it "is a singleton object" do expect(Shell::ShellSession).to include(Singleton) end - end describe Shell::ClientSession do @@ -75,7 +70,6 @@ describe Shell::ClientSession do expect(Chef::Client).to receive(:new).with(nil, Chef::Config[:shell_config]).and_return(@client) @session.send(:rebuild_node) end - end describe Shell::StandAloneSession do @@ -126,7 +120,6 @@ describe Shell::StandAloneSession do expect(Chef::Client).to receive(:new).with(nil, Chef::Config[:shell_config]).and_return(@client) @session.send(:rebuild_node) end - end describe Shell::SoloSession do @@ -158,7 +151,7 @@ describe Shell::SoloSession do end it "keeps json attribs and passes them to the node for consumption" do - @session.node_attributes = {"besnard_lakes" => "are_the_dark_horse"} + @session.node_attributes = { "besnard_lakes" => "are_the_dark_horse" } expect(@session.node.besnard_lakes).to eq("are_the_dark_horse") #pending "1) keep attribs in an ivar 2) pass them to the node 3) feed them to the node on reset" end @@ -192,5 +185,4 @@ describe Shell::SoloSession do expect(Chef::Client).to receive(:new).with(nil, Chef::Config[:shell_config]).and_return(@client) @session.send(:rebuild_node) end - end |