spec/tweetstream/daemon_spec.rb in tweetstream-2.0.1 vs spec/tweetstream/daemon_spec.rb in tweetstream-2.1.0

- old
+ new

@@ -16,6 +16,14 @@ it 'initializes with an app_name' do client = TweetStream::Daemon.new('tweet_tracker') client.app_name.should eq('tweet_tracker') end end + + describe '#start' do + it 'starts the daemon' do + client = TweetStream::Daemon.new + Daemons.should_receive(:run_proc).once + client.track('intridea') + end + end end