Sha256: 5ca4fbacd321db4b2c8b152c52cbb924d7c70b0eba2bfa1f3b5bcb7aecebf5db
Contents?: true
Size: 794 Bytes
Versions: 3
Compression:
Stored size: 794 Bytes
Contents
require 'spec_helper' describe TweetStream::Daemon do describe '.new' do it 'initializes with no arguments' do client = TweetStream::Daemon.new client.should be_kind_of(TweetStream::Client) end it 'initializes with defaults' do client = TweetStream::Daemon.new client.app_name.should eq(TweetStream::Daemon::DEFAULT_NAME) client.daemon_options.should eq(TweetStream::Daemon::DEFAULT_OPTIONS) end 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
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
tweetstream-2.3.0 | spec/tweetstream/daemon_spec.rb |
tweetstream-2.2.0 | spec/tweetstream/daemon_spec.rb |
tweetstream-2.1.0 | spec/tweetstream/daemon_spec.rb |