Sha256: 817ddef9f0d35c16f52496176553c30b5fa14e5583ae151d9e9f22e160963a6f

Contents?: true

Size: 464 Bytes

Versions: 5

Compression:

Stored size: 464 Bytes

Contents

require "spec_helper"

describe ShareChecker::Providers::Tweetracker do
  before(:each) do
    @provider = ShareChecker.provider("tweetracker", "http://www.google.com.ua/", :group_id => 'test')
  end
  
  it "should parse response from tweetracker" do
    response = "{\"tweets\":30,\"id\":\"4e281dcec546612414000004\",\"users\":26,\"query\":\"http://www.mcdonaldseurokids2012.com.ua/challenges/1/works/140\"}"
    @provider.parse(response).should == 26
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
share_checker-0.1.4 spec/providers/tweetracker_spec.rb
share_checker-0.1.3 spec/providers/tweetracker_spec.rb
share_checker-0.1.2 spec/providers/tweetracker_spec.rb
share_checker-0.1.1 spec/providers/tweetracker_spec.rb
share_checker-0.1.0 spec/providers/tweetracker_spec.rb