Sha256: 13408c5e44143f4f0b2ed9dcc17bf05641ded253ba4d2dafb2333884469012e7
Contents?: true
Size: 744 Bytes
Versions: 2
Compression:
Stored size: 744 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.receive do |msg, trace| puts "#{msg}: #{trace}" end @tracker.on_match.receive 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 60 end end describe "#stop" do it "should stop" do @tracker.stop end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
streambot-1.0.0 | spec/tracker_spec.rb |
streambot-1.0.0.rc4 | spec/tracker_spec.rb |