summaryrefslogtreecommitdiff
path: root/spec/unit/application/client_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/unit/application/client_spec.rb')
-rw-r--r--spec/unit/application/client_spec.rb11
1 files changed, 1 insertions, 10 deletions
diff --git a/spec/unit/application/client_spec.rb b/spec/unit/application/client_spec.rb
index dc3add6fd9..679425abbd 100644
--- a/spec/unit/application/client_spec.rb
+++ b/spec/unit/application/client_spec.rb
@@ -49,7 +49,6 @@ describe Chef::Application::Client, "reconfigure" do
end
context "when given a named_run_list" do
-
before do
ARGV.replace( %w{ --named-run-list arglebargle-example } )
app.reconfigure
@@ -58,7 +57,6 @@ describe Chef::Application::Client, "reconfigure" do
it "sets named_run_list in Chef::Config" do
expect(Chef::Config[:named_run_list]).to eq("arglebargle-example")
end
-
end
end
@@ -141,22 +139,18 @@ Enable chef-client interval runs by setting `:client_fork = true` in your config
app.reconfigure
expect(Chef::Config.interval).to be_nil
end
-
end
describe "when --no-listen is set" do
-
it "configures listen = false" do
app.config[:listen] = false
app.reconfigure
expect(Chef::Config[:listen]).to eq(false)
end
-
end
describe "when the json_attribs configuration option is specified" do
-
- let(:json_attribs) { {"a" => "b"} }
+ let(:json_attribs) { { "a" => "b" } }
let(:config_fetcher) { double(Chef::ConfigFetcher, :fetch_json => json_attribs) }
let(:json_source) { "https://foo.com/foo.json" }
@@ -243,7 +237,6 @@ Enable chef-client interval runs by setting `:client_fork = true` in your config
end
describe "when both the pidfile and lockfile opts are set to the same value" do
-
before do
Chef::Config[:pid_file] = "/path/to/file"
Chef::Config[:lockfile] = "/path/to/file"
@@ -255,7 +248,6 @@ Enable chef-client interval runs by setting `:client_fork = true` in your config
end
end
-
describe Chef::Application::Client, "setup_application" do
before do
@app = Chef::Application::Client.new
@@ -387,7 +379,6 @@ describe Chef::Application::Client, "run_application", :unix_only do
# Chef::Log.level = :debug
allow(@app).to receive(:run_chef_client) do
-
run_count += 1
if run_count > 3
exit 0