From 5473f45f0277c854dbe50c014c63bb3961be44bc Mon Sep 17 00:00:00 2001 From: Sean Porter Date: Thu, 11 Jun 2015 22:31:20 -0700 Subject: [PATCH] [E2BIG] removed SENSU_CONFIG_FILES from specs --- spec/loader_spec.rb | 1 - spec/settings_spec.rb | 4 +++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/spec/loader_spec.rb b/spec/loader_spec.rb index c25fb23..967859d 100644 --- a/spec/loader_spec.rb +++ b/spec/loader_spec.rb @@ -133,7 +133,6 @@ expect(ENV["SENSU_LOADED_TEMPFILE"]).to match(/sensu_loaded_files/) loaded_files = IO.read(ENV["SENSU_LOADED_TEMPFILE"]) expect(loaded_files.split(":")).to eq(@loader.loaded_files) - expect(ENV["SENSU_CONFIG_FILES"].split(":")).to eq(@loader.loaded_files) end it "can load settings and determine if certain definitions exist" do diff --git a/spec/settings_spec.rb b/spec/settings_spec.rb index 45aae66..7072f09 100644 --- a/spec/settings_spec.rb +++ b/spec/settings_spec.rb @@ -38,7 +38,9 @@ expect(settings[:checks][:merger][:command]).to eq("echo -n merger") expect(settings[:checks][:merger][:subscribers]).to eq(["foo", "bar"]) expect(settings[:checks][:nested][:command]).to eq("true") - expect(ENV["SENSU_CONFIG_FILES"].split(":")).to eq(settings.loaded_files) + expect(ENV["SENSU_LOADED_TEMPFILE"]).to match(/sensu_loaded_files/) + loaded_files = IO.read(ENV["SENSU_LOADED_TEMPFILE"]) + expect(loaded_files.split(":")).to eq(settings.loaded_files) ENV["RABBITMQ_URL"] = nil end