Skip to content

Commit

Permalink
Test empty template dir
Browse files Browse the repository at this point in the history
  • Loading branch information
timothysmith0609 committed Jan 24, 2019
1 parent a790756 commit fe72804
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Empty file added test/fixtures/empty_dir/.keep
Empty file.
5 changes: 5 additions & 0 deletions test/integration/kubernetes_deploy_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,11 @@ def test_invalid_yaml_in_partial_prints_helpful_error
assert_logs_match("Error message:", 1)
end

def test_empty_template_dir_fails
error = assert_raises(RuntimeError) { deploy_fixtures("empty_dir") }
assert_equal(error.message, "Cannot deploy empty template set")
end

def test_missing_partial_correctly_identifies_invalid_template
assert_deploy_failure(deploy_raw_fixtures("missing-partials", subset: ["parent-with-missing-child.yml.erb"]))

Expand Down

0 comments on commit fe72804

Please sign in to comment.