Sha256: e24515f97e386967e0d5f5d0683f12526f068f2b0ebac84f03ba5af9311829d3

Contents?: true

Size: 393 Bytes

Versions: 8

Compression:

Stored size: 393 Bytes

Contents

require "spec_helper"

describe ShareChecker::Providers::Twitter do
  before(:each) do
    @provider = ShareChecker.provider("twitter", "http://www.google.com.ua/")
  end
  
  it "should parse response from twitter" do
    response = 'twttr.receiveCount({"count":38,"url":"http://www.mcdonaldseurokids2012.com.ua/challenges/1/works/98/"})'
    @provider.parse(response).should == 38
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
share_checker-0.1.7 spec/providers/twitter_spec.rb
share_checker-0.1.6 spec/providers/twitter_spec.rb
share_checker-0.1.5 spec/providers/twitter_spec.rb
share_checker-0.1.4 spec/providers/twitter_spec.rb
share_checker-0.1.3 spec/providers/twitter_spec.rb
share_checker-0.1.2 spec/providers/twitter_spec.rb
share_checker-0.1.1 spec/providers/twitter_spec.rb
share_checker-0.1.0 spec/providers/twitter_spec.rb