Skip to content

Commit

Permalink
test tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
timothysmith0609 committed Feb 21, 2019
1 parent c4863e8 commit 70b427b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/unit/kubernetes-deploy/options_helper_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ def test_multiple_template_dirs
template_dirs = [fixture_path('hello-cloud'), fixture_path('partials')]

KubernetesDeploy::OptionsHelper.with_consolidated_template_dir(template_dirs) do |template_dir|
fixture_path_entries = template_dirs.collect { |dir| Dir.entries(dir) }.flatten.uniq.reject { |f| f =~ /^---$/ }
fixture_path_entries = template_dirs.collect { |dir| Dir.entries(dir) }.flatten.uniq
template_dir_entries = Dir.entries(template_dir)
assert_equal(fixture_path_entries.length, template_dir_entries.length)
fixture_path_entries.each do |fixture|
assert(template_dir_entries.index { |s| s.include?(fixture) })
assert(template_dir_entries.select { |s| s.include?(fixture) })
end
end
end
Expand Down

0 comments on commit 70b427b

Please sign in to comment.