Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent nil.include? #747

Merged
merged 2 commits into from
May 13, 2016
Merged

Prevent nil.include? #747

merged 2 commits into from
May 13, 2016

Conversation

alexpop
Copy link
Contributor

@alexpop alexpop commented May 13, 2016

Caught by the inspec-scap unit tests:

OvalRegistry::symlink_test#test_0002_parses xml to ruby (check existence):
NoMethodError: undefined method `include?' for nil:NilClass
    /home/travis/build/chef/inspec-scap/vendor/bundle/ruby/2.2.0/gems/inspec-0.21.5/lib/inspec/objects/test.rb:52:in `describe_chain'
    /home/travis/build/chef/inspec-scap/vendor/bundle/ruby/2.2.0/gems/inspec-0.21.5/lib/inspec/objects/test.rb:65:in `rb_describe'

@alexpop alexpop added the Type: Bug Feature not working as expected label May 13, 2016
@arlimus arlimus merged commit 8a9cd53 into master May 13, 2016
@arlimus arlimus deleted the ap/nil-include branch May 13, 2016 18:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Feature not working as expected
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants