Sha256: 99dc848100ee4b2b221818165e635b33ba61439755e732e743a6ffa1ef4dfeb6

Contents?: true

Size: 567 Bytes

Versions: 5

Compression:

Stored size: 567 Bytes

Contents

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
fluentd-ui-1.2.1 test/models/fluentd/setting/in_http_test.rb
fluentd-ui-1.2.0 test/models/fluentd/setting/in_http_test.rb
fluentd-ui-1.1.0 test/models/fluentd/setting/in_http_test.rb
fluentd-ui-1.0.1 test/models/fluentd/setting/in_http_test.rb
fluentd-ui-1.0.0 test/models/fluentd/setting/in_http_test.rb