diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2016-07-19 15:41:00 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2016-07-19 15:41:00 -0700 |
commit | 98008c673829d3dd361cc8f0a59dbe51e4a19f9d (patch) | |
tree | e61dc450b3d77fca468ca8ef5eafb57cefd3748f | |
parent | bad96f846718685302fec9e627471b68cd9bab8f (diff) | |
download | chef-98008c673829d3dd361cc8f0a59dbe51e4a19f9d.tar.gz |
fix the spec filter
these platform filters really need some serious cleanup along the lines of
the ruby version cleanup that i did, the number of these helpers is getting
rediculous...
-rw-r--r-- | spec/spec_helper.rb | 1 | ||||
-rw-r--r-- | spec/support/shared/unit/provider/file.rb | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 55b0a9c3f6..44a599436c 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -153,6 +153,7 @@ RSpec.configure do |config| config.filter_run_excluding :aix_only => true unless aix? config.filter_run_excluding :debian_family_only => true unless debian_family? config.filter_run_excluding :linux_only => true unless linux? + config.filter_run_excluding :non_linux_only => true if linux? config.filter_run_excluding :supports_cloexec => true unless supports_cloexec? config.filter_run_excluding :selinux_only => true unless selinux_enabled? config.filter_run_excluding :requires_root => true unless root? diff --git a/spec/support/shared/unit/provider/file.rb b/spec/support/shared/unit/provider/file.rb index 9f84111eac..ee3438da70 100644 --- a/spec/support/shared/unit/provider/file.rb +++ b/spec/support/shared/unit/provider/file.rb @@ -700,7 +700,7 @@ shared_examples_for Chef::Provider::File do provider.send(:do_resolv_conf_fixup) end end - context "when managing /etc/resolv.conf", linux_only: false do + context "when managing /etc/resolv.conf", non_linux_only: true do let(:resource_path) { "/etc/resolv.conf" } it "does not reload the nameservers on non-linux" do expect(Resolv::DefaultResolver).not_to receive(:replace_resolvers) |