Sha256: c038429555c75cbc70ea55f622deb19421110dbcbecf55ed522fbc1f66730342
Contents?: true
Size: 728 Bytes
Versions: 1
Compression:
Stored size: 728 Bytes
Contents
require 'spec_helper' describe StreamBot::Tracker do before :all do params = YAML.load_file('spec/params.yml') @tracker = StreamBot::Tracker.new(params) @tracker.on_error do |msg, trace| puts "#{msg}: #{trace}" end @tracker.on_match do |status, filter_path, filter_value| puts "filter matched on #{filter_path} with #{filter_value} in status ##{status['id']}" end end describe "#start" do it "should start" do @thread = Thread.new do @tracker.start end end end describe "wait" do it "should sleep for 60 seconds" do sleep 10 end end describe "#stop" do it "should stop" do @tracker.stop end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
streambot-1.0.0.rc3 | spec/tracker_spec.rb |