Sha256: b59d5bfbd363bc5efa3d975cf5e2484abe76bafdcf60823f223f5189f83d21e4
Contents?: true
Size: 1.37 KB
Versions: 1
Compression:
Stored size: 1.37 KB
Contents
require 'spec_helper' describe "stratify-twitter" do use_vcr_cassette "twitter" let(:collector) do Stratify::Twitter::Collector.create! :username => "jasonrudolph", :consumer_key => 'uqaeu0eAd0kKGUyPcfpcSQ', :consumer_secret => 'CHcsc0zJgxUjFBlrsRISrKamEfgOHjjzHjHJgS9kr0', :oauth_token => '14188383-G8UEUz2KVP0ZZj2IJZC2o6SuaIJnKPYud9JPl1aqO', :oauth_token_secret => 'GjryLDrcvBWfqAD9xY3FjOhTD7LKfNVlKsCRv6lMmfk' end it "collects and stores status updates from Twitter", :database => true do collector.run Stratify::Twitter::Activity.where( :created_at => Time.parse("2013-03-28T23:14:40Z"), :status_id => 317414466201473025, :username => "jasonrudolph", :text => "This tweet is false.", :retweeted_status => nil ).should exist end it "collects and stores retweets from Twitter", :database => true do collector.run activity = Stratify::Twitter::Activity.where( "created_at" => Time.parse("2013-04-18T21:24:39Z"), "status_id" => 324996922605711361, "username" => "jasonrudolph", "text" => "RT @github: Get up to speed with Pulse - https://t.co/yhqlLpcuv4", "retweeted_status.status_id" => 324996855584940033, "retweeted_status.username" => "github", "retweeted_status.text" => "Get up to speed with Pulse - https://t.co/yhqlLpcuv4" ).should exist end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
stratify-twitter-0.1.5 | spec/stratify-twitter/integration_spec.rb |