Sha256: 08670f619a7f601c0d84c1fb740aa16482132127bd8afb29528e3df51d5c7620
Contents?: true
Size: 685 Bytes
Versions: 2
Compression:
Stored size: 685 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 @tracker.start 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.rc2 | spec/tracker_spec.rb |
streambot-1.0.0.rc1 | spec/tracker_spec.rb |