Sha256: 8c64e03e0b0f9d18c8b6d5e483e36b63401a6f30265fe0e6d393d8beb1d3f7fe
Contents?: true
Size: 764 Bytes
Versions: 3
Compression:
Stored size: 764 Bytes
Contents
require 'helper' class TwilioOutputTest < Test::Unit::TestCase def setup Fluent::Test.setup end CONFIG = %[ account_token PUSHOVER_ACCOUNT_ID user_key USER_KEY ] def create_driver(conf=CONFIG, tag='test') Fluent::Test::OutputTestDriver.new(Fluent::PushoverOutput, tag).configure(conf) end def test_configure assert_raise(Fluent::ConfigError) { d = create_driver('') } d = create_driver CONFIG assert_equal 'PUSHOVER_ACCOUNT_ID', d.instance.account_token assert_equal 'USER_KEY', d.instance.user_key end def test_emit d1 = create_driver(CONFIG, 'notify.call') d1.run do d1.emit({'message' => 'hello world.'}) end emits = d1.emits assert_equal 0, emits.length end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
fluent-plugin-pushover-1.0.0 | test/plugin/test_out_pushover.rb |
fluent-plugin-pushover-0.0.4 | test/plugin/test_out_pushover.rb |
fluent-plugin-pushover-0.0.3 | test/plugin/test_out_pushover.rb |