Sha256: 52074be04e948c726d05d0b6f7c64252a94a4a186d5b45bcee948dcfc51ab40e
Contents?: true
Size: 885 Bytes
Versions: 2
Compression:
Stored size: 885 Bytes
Contents
require 'helper' class SlackRTMInputTest < Test::Unit::TestCase def setup Fluent::Test.setup end def create_driver(conf) Fluent::Test::InputTestDriver.new(Fluent::SlackRTMInput).configure(conf) end def test_configure_success conf = %[ tag test token hogefuga ] d = create_driver(conf) assert_equal 'test', d.instance.tag assert_equal 'hogefuga', d.instance.token end def test_configure_fail_when_token_is_empty conf = %[ tag test ] assert_raise(Fluent::ConfigError) do create_driver conf end end def test_configure_fail_when_tag_is_empty conf = %[ token hogehoge ] assert_raise(Fluent::ConfigError) do create_driver conf end end def test_configure_error_when_config_is_empty assert_raise(Fluent::ConfigError) do create_driver '' end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fluent-plugin-slackrtm-0.2.4 | test/plugin/test_in_slackrtm.rb |
fluent-plugin-slackrtm-0.2.3 | test/plugin/test_in_slackrtm.rb |