Sha256: ebbac87878f98c4f10a83fe64af185f63352377c10eb09799fb117be3c0e12fb

Contents?: true

Size: 800 Bytes

Versions: 7

Compression:

Stored size: 800 Bytes

Contents

require 'spec_helper'

describe Scouter::Twitter do
  describe '#get_count' do
    let!(:yahoo) { 'http://www.yahoo.co.jp/' }
    let!(:google) { 'http://www.google.com/' }

    context 'when url parameter is String' do
      it 'yahoo has over 135000 tweet' do
        results, errors = Scouter::Twitter.get_count(yahoo)
        expect(errors).to be_empty
        expect(results[yahoo].twitter).to be >= 135000
      end
    end

    context 'when url parameter is Array' do
      it 'yahoo has over 135000 tweet and google has over 21920000 tweet' do
        results, errors = Scouter::Twitter.get_count([google, yahoo])
        expect(errors).to be_empty
        expect(results[yahoo].twitter).to be >= 135000
        expect(results[google].twitter).to be >= 21920000
      end
    end
  end

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
scouter-0.0.7 spec/scouter/twitter_spec.rb
scouter-0.0.6 spec/scouter/twitter_spec.rb
scouter-0.0.5 spec/scouter/twitter_spec.rb
scouter-0.0.4 spec/scouter/twitter_spec.rb
scouter-0.0.3 spec/scouter/twitter_spec.rb
scouter-0.0.2 spec/scouter/twitter_spec.rb
scouter-0.0.1 spec/scouter/twitter_spec.rb