inspec/test/unit/dsl
eramoto 435ad68698 Sort gotten file list on test (#2812)
When testing on a filesystem used for a long time or built on a small
sized partition, the actual file order may be different from the
expected file order as below:

    1) Failure:
  inspec keyword::inspec.profile.files#test_0002_lists all profile files when calling #files [/work/git/inspec/test/unit/dsl/other_keywords_test.rb:50]:
  --- expected
  +++ actual
  @@ -1 +1 @@
  -["a_sub_dir/sub_items.conf", "items.conf"]
  +["items.conf", "a_sub_dir/sub_items.conf"]

    2) Failure:
  SourceReaders::InspecReader::with a valid profile#test_0005_retrieves all extra files [/work/git/inspec/test/unit/source_readers/inspec_test.rb:39]:
  --- expected
  +++ actual
  @@ -1 +1 @@
  -["files/a_sub_dir/sub_items.conf", "files/items.conf"]
  +["files/items.conf", "files/a_sub_dir/sub_items.conf"]

Signed-off-by: ERAMOTO Masaya <eramoto.masaya@jp.fujitsu.com>
2018-03-14 09:35:43 -04:00
..
control_test.rb bugfix: unindent description misbehaviors 2017-04-25 13:21:38 +02:00
describe_test.rb add Inspec::Describe for abstract describe state (#2010) 2018-01-30 16:32:56 +01:00
objects_test.rb Include ref when writing out inspec control objects (#2259) 2017-10-24 17:50:23 -04:00
other_keywords_test.rb Sort gotten file list on test (#2812) 2018-03-14 09:35:43 -04:00