Sha256: 7fb3f6215ee5d2697b26aac76140fb60517b2787136691a6182f1eda158d2faf
Contents?: true
Size: 612 Bytes
Versions: 2
Compression:
Stored size: 612 Bytes
Contents
require 'spec_helper' describe FluQ::Handler::Base do let(:event) { FluQ::Event.new({}) } it { should respond_to(:on_events) } it { should be_a(FluQ::Mixins::Loggable) } its(:config) { should == { timeout: 60 } } its(:name) { should == "base" } its(:timers) { should be_instance_of(Timers) } it 'should have a type' do described_class.type.should == "base" end it 'can have custom names' do described_class.new(name: "visitors").name.should == "visitors" end it 'should not filter events by default' do subject.filter([event, event]).should have(2).items end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fluq-0.8.1 | spec/fluq/handler/base_spec.rb |
fluq-0.8.0 | spec/fluq/handler/base_spec.rb |