summaryrefslogtreecommitdiff
path: root/spec/unit/application/solo_spec.rb
diff options
context:
space:
mode:
authorAJ Christensen <aj@junglistheavy.industries>2014-12-30 11:39:55 +1300
committerBryan McLellan <btm@opscode.com>2015-02-09 21:58:39 -0500
commit95be9a0418b8db7b224092ef3e15282b5ae97eee (patch)
tree02c5ef4fa4fac28adf1a0abe5033e7b2642b3274 /spec/unit/application/solo_spec.rb
parent955bce9ed05d6c69a37c506dc9e24a6e407e1a4d (diff)
downloadchef-95be9a0418b8db7b224092ef3e15282b5ae97eee.tar.gz
Refs #2709: Isolate/fix the no-fork fault
* Share specific recipes code to application parent * Update specs to passing, update specs to RSpec 3. * Specs for set_specific_recipes, solo, client.
Diffstat (limited to 'spec/unit/application/solo_spec.rb')
-rw-r--r--spec/unit/application/solo_spec.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/unit/application/solo_spec.rb b/spec/unit/application/solo_spec.rb
index 2a07ff38ad..1785ecfc86 100644
--- a/spec/unit/application/solo_spec.rb
+++ b/spec/unit/application/solo_spec.rb
@@ -34,6 +34,11 @@ describe Chef::Application::Solo do
end
describe "configuring the application" do
+ it 'should call set_specific_recipes' do
+ expect(app).to receive(:set_specific_recipes)
+ app.reconfigure
+ end
+
it "should set solo mode to true" do
app.reconfigure
expect(Chef::Config[:solo]).to be_truthy