summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Mundrawala <jdmundrawala@gmail.com>2014-12-16 17:38:38 -0800
committerJay Mundrawala <jdmundrawala@gmail.com>2014-12-16 17:40:59 -0800
commiteedd12a9e2bd20c0c068870222189f620aea34c8 (patch)
tree82956c68159df9f3457acb791ae5b196e5e7309e
parent1d5b9bf57df6812b6f6a2961d0995aa6c2d8f695 (diff)
downloadchef-jdm/registry_spec.tar.gz
Disable broken registry_spec testsjdm/registry_spec
The registry_spec has been broken since we switched to rspec 3 :pending was running the tests, but expecting them to fail. There seems to be a bug where if there is a failure outside the test, in our case the before block was silently raising an exception accessing resource_name, the tests would fail as expected but rspec would return with an exit code of 1
-rw-r--r--spec/functional/resource/registry_spec.rb2
-rw-r--r--spec/spec_helper.rb1
2 files changed, 2 insertions, 1 deletions
diff --git a/spec/functional/resource/registry_spec.rb b/spec/functional/resource/registry_spec.rb
index d3120ac77c..f112ad9b00 100644
--- a/spec/functional/resource/registry_spec.rb
+++ b/spec/functional/resource/registry_spec.rb
@@ -40,7 +40,7 @@ describe Chef::Resource::RegistryKey, :unix_only do
end
end
-describe Chef::Resource::RegistryKey, :windows_only, :pending => "Refactor helper methods" do
+describe Chef::Resource::RegistryKey, :windows_only, :broken => true do
# parent and key must be single keys, not paths
let(:parent) { 'Opscode' }
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index b155e6da24..995be5060b 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -141,6 +141,7 @@ RSpec.configure do |config|
config.filter_run_excluding :openssl_lt_101 => true unless openssl_lt_101?
config.filter_run_excluding :ruby_lt_20 => true unless ruby_lt_20?
config.filter_run_excluding :aes_256_gcm_only => true unless aes_256_gcm?
+ config.filter_run_excluding :broken => true
running_platform_arch = `uname -m`.strip