Skip to content

Commit

Permalink
add test to confirm configuration error raised for path missing
Browse files Browse the repository at this point in the history
  • Loading branch information
tagomoris committed Jan 11, 2017
1 parent 0981458 commit 6f923b3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/plugin/test_out_file.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ def create_driver(conf = CONFIG, opts = {})
end

test 'path should be writable' do
assert_raise(Fluent::ConfigError.new("'path' parameter is required")) do
create_driver ""
end

assert_nothing_raised do
create_driver %[path #{TMP_DIR}/test_path]
end
Expand Down

0 comments on commit 6f923b3

Please sign in to comment.