Sha256: 1aeb3c24794ba8595b70a35ece75b34eba56a4ce4d909a6105517344faa72f2f

Contents?: true

Size: 765 Bytes

Versions: 35

Compression:

Stored size: 765 Bytes

Contents

require 'spec_helper'

describe Fluentd::Setting::InSyslog do
  let(:klass) { described_class }
  let(:instance) { klass.new(valid_attributes) }
  let(:valid_attributes) {
    {
      tag: "foo.bar",
    }
  }

  describe "#valid?" do
    it "should be invalid if tag parameter lacked" do
      params = valid_attributes.dup
      params.delete(:tag)
      klass.new(params).should_not be_valid
    end
  end

  describe "#plugin_type_name" do
    subject { instance.plugin_type_name }
    it { should == "syslog" }
  end

  describe "#input_plugin" do
    it { instance.should be_input_plugin }
    it { instance.should_not be_output_plugin }
  end

  describe "#to_config" do
    subject { instance.to_config }
    it { should include("type syslog") }
  end
end

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
fluentd-ui-1.0.0.alpha.2 spec/models/fluentd/setting/in_syslog_spec.rb
fluentd-ui-1.0.0.alpha.1 spec/models/fluentd/setting/in_syslog_spec.rb
fluentd-ui-0.4.5 spec/models/fluentd/setting/in_syslog_spec.rb
fluentd-ui-0.4.4 spec/models/fluentd/setting/in_syslog_spec.rb
fluentd-ui-0.4.3 spec/models/fluentd/setting/in_syslog_spec.rb
fluentd-ui-0.4.2 spec/models/fluentd/setting/in_syslog_spec.rb
fluentd-ui-0.4.1 spec/models/fluentd/setting/in_syslog_spec.rb
fluentd-ui-0.4.0 spec/models/fluentd/setting/in_syslog_spec.rb
fluentd-ui-0.3.21 spec/models/fluentd/setting/in_syslog_spec.rb
fluentd-ui-0.3.20 spec/models/fluentd/setting/in_syslog_spec.rb
fluentd-ui-0.3.19 spec/models/fluentd/setting/in_syslog_spec.rb
fluentd-ui-0.3.18 spec/models/fluentd/setting/in_syslog_spec.rb
fluentd-ui-0.3.17 spec/models/fluentd/setting/in_syslog_spec.rb
fluentd-ui-0.3.16 spec/models/fluentd/setting/in_syslog_spec.rb
fluentd-ui-0.3.15 spec/models/fluentd/setting/in_syslog_spec.rb
fluentd-ui-0.3.14 spec/models/fluentd/setting/in_syslog_spec.rb
fluentd-ui-0.3.13 spec/models/fluentd/setting/in_syslog_spec.rb
fluentd-ui-0.3.12 spec/models/fluentd/setting/in_syslog_spec.rb
fluentd-ui-0.3.11 spec/models/fluentd/setting/in_syslog_spec.rb
fluentd-ui-0.3.10 spec/models/fluentd/setting/in_syslog_spec.rb