Sha256: 5bd74c4ad89dd98dad5ad10e4901bf9bd27b144fa9917889ded2e654a234c52f
Contents?: true
Size: 511 Bytes
Versions: 4
Compression:
Stored size: 511 Bytes
Contents
require 'spec_helper' describe Popularity::Facebook do context "valid url" do use_vcr_cassette "facebook" subject { Popularity::Facebook.new('http://google.com') } it "should return correct comment count" do expect(10121).to equal subject.comments end it "should return correct share count" do expect(12085903).to equal subject.shares end it "should calculate the correct total" do expect(subject.total).to equal (subject.shares + subject.comments) end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
popularity-0.2.1 | spec/facebook_spec.rb |
popularity-0.1.1 | spec/facebook_spec.rb |
popularity-0.1.0 | spec/facebook_spec.rb |
popularity-0.0.1 | spec/facebook_spec.rb |