summaryrefslogtreecommitdiff
path: root/spec/support
diff options
context:
space:
mode:
authorAllan Espinosa <aespinosa33@bloomberg.net>2017-12-20 10:31:38 -0500
committerAllan Espinosa <aespinosa33@bloomberg.net>2017-12-20 11:50:53 -0500
commit9f02a591acb6eeb99712c4c24beb653ddd528a5f (patch)
treea5f1cde34f5d96bf15cf1f2d17bac77d85a28f2e /spec/support
parent8014cf573c48e1e7f08d85c0420666443d6da2f8 (diff)
downloadchef-9f02a591acb6eeb99712c4c24beb653ddd528a5f.tar.gz
Update the client.d stub
Signed-off-by: Allan Espinosa <aespinosa33@bloomberg.net>
Diffstat (limited to 'spec/support')
-rw-r--r--spec/support/shared/unit/application_dot_d.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/support/shared/unit/application_dot_d.rb b/spec/support/shared/unit/application_dot_d.rb
index da4eb88edd..b94fa7c184 100644
--- a/spec/support/shared/unit/application_dot_d.rb
+++ b/spec/support/shared/unit/application_dot_d.rb
@@ -38,9 +38,11 @@ shared_examples_for "an application that loads a dot d" do
it "loads the configuration in order" do
expect(IO).to receive(:read).with(Pathname.new("#{client_d_dir}/00-foo.rb").cleanpath.to_s).and_return("foo 0")
expect(IO).to receive(:read).with(Pathname.new("#{client_d_dir}/01-bar.rb").cleanpath.to_s).and_return("bar 0")
+ expect(IO).to receive(:read).with(Pathname.new("#{client_d_dir}/02-strings.rb").cleanpath.to_s).and_return("strings 0")
allow(app).to receive(:apply_config).with(anything(), Chef::Config.platform_specific_path("/etc/chef/client.rb")).and_call_original.ordered
expect(app).to receive(:apply_config).with("foo 0", Pathname.new("#{client_d_dir}/00-foo.rb").cleanpath.to_s).and_call_original.ordered
expect(app).to receive(:apply_config).with("bar 0", Pathname.new("#{client_d_dir}/01-bar.rb").cleanpath.to_s).and_call_original.ordered
+ expect(app).to receive(:apply_config).with("strings 0", Pathname.new("#{client_d_dir}/02-strings.rb").cleanpath.to_s).and_call_original.ordered
app.reconfigure
end
end