Sha256: 2dd1bfcaa0609077ccd6c93371849e9e63d836fdeeccdae1fb0a5518e57fe983
Contents?: true
Size: 611 Bytes
Versions: 1
Compression:
Stored size: 611 Bytes
Contents
require 'spec_helper' describe Popularity::GooglePlus do context "valid url" do use_vcr_cassette "google_plus" subject { Popularity::GooglePlus.new('http://google.com') } it "should return correct plus-one count" do expect(11180649).to eq subject.plus_ones end it "should calculate the correct total" do expect(subject.plus_ones).to equal subject.total end context "json" do let(:json) { subject.as_json } it "should have required attributes in json" do expect(subject.plus_ones).to eq(json["plus_ones"]) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
popularity-0.2.1 | spec/google_plus_spec.rb |