inspec/test/unit
James Stocks ca833afacf Generate describe code for an array of strings (#3227)
Context:
When testing a Windows registry key with a period character in it e.g. `explorer.exe` it is not possible to use `its("explorer.exe")` because the period would be interpreted as method chaining.
In this case, you must instead use `its(["explorer", "exe"])`
See https://github.com/inspec/inspec/issues/1281

This commit fixes `to_ruby`in `Inspec::Describe` so that it produces an array in the generated Inspec code instead of a string.

Signed-off-by: James Stocks <jstocks@chef.io>
2018-07-19 15:00:21 -04:00
..
bundles Fix the A2 vendoring with depends on the A2 server. (#3022) 2018-05-04 12:25:40 -04:00
dependencies Add parent_profile field in json output (#3164) 2018-06-26 13:04:31 -04:00
dsl Generate describe code for an array of strings (#3227) 2018-07-19 15:00:21 -04:00
fetchers Fix the git fetcher to vendor correctly (#3097) 2018-05-31 13:53:14 -04:00
mock Accept regexes for --controls option to inspec exec (#3179) 2018-07-05 15:44:30 -04:00
objects bugfix: default attributes for nil and false (#2410) 2017-12-21 14:20:59 +01:00
plugins Prevent resources from loading if supports check fails (#2665) 2018-02-16 15:15:53 -05:00
profiles When a profile is created with init, the last item after a / is the (#3175) 2018-07-05 15:37:18 -04:00
reporters Add insecure option to the automate report json (#3124) 2018-06-14 14:05:21 -04:00
resource_supports/aws Capture ArgumentErrors from aws. (#2673) 2018-02-17 16:50:35 +01:00
resources Ensure resources fail that target something that isn't supported (#3231) 2018-07-19 08:16:54 -04:00
source_readers Sort gotten file list on test (#2812) 2018-03-14 09:35:43 -04:00
utils nginx_conf resource: Fix include paths with quotes (#2726) 2018-05-03 09:53:20 -04:00
base_cli_test.rb Add automate reporter (#2902) 2018-04-05 08:51:51 -04:00
file_provider_test.rb Remove meaningless stdout message (#2313) 2017-11-17 15:56:36 -05:00
helper.rb Rely on unit test helper to load resources, not individual AWS tests 2018-02-07 12:09:08 -05:00
runner_test.rb Allow ad-hoc runners to use rspec formats. (#2621) 2018-02-12 19:29:54 +01:00
shell_detector_test.rb Corrected some unit test warnings (#2242) 2017-10-17 14:49:26 +02:00