Sha256: 833476ca21f593a4784c535353d2114cab0f4f0ce42a9ea938ce86450e44222b

Contents?: true

Size: 611 Bytes

Versions: 6

Compression:

Stored size: 611 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
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
tweetstream-2.0.1 spec/tweetstream/daemon_spec.rb
tweetstream-2.0.0 spec/tweetstream/daemon_spec.rb
tweetstream-1.1.5 spec/tweetstream/daemon_spec.rb
tweetstream-1.1.4 spec/tweetstream/daemon_spec.rb
tweetstream-1.1.3 spec/tweetstream/daemon_spec.rb
tweetstream-1.1.2 spec/tweetstream/daemon_spec.rb