fluentd-ui/test/models/fluentd/setting/in_http_test.rb
Kenji Okimoto 5b882568f7
Add test/models/fluentd/setting/*_test.rb
Signed-off-by: Kenji Okimoto <okimoto@clear-code.com>
2018-08-02 14:10:46 +09:00

31 lines
567 B
Ruby

require "test_helper"
module Fluentd::Setting
class InHttpTest < ActiveSupport::TestCase
setup do
@klass = Fluentd::Setting::InHttp
@instance = @klass.new({})
end
test "#valid?" do
assert do
@instance.valid?
end
end
test "#plugin_name" do
assert_equal("http", @instance.plugin_name)
end
test "#plugin_type" do
assert_equal("input", @instance.plugin_type)
end
test "#to_config" do
assert do
@instance.to_config.to_s.include?("@type http")
end
end
end
end