Sha256: 7f1fc776442ddd58325c1eadd06c7cc55c68623e35c47c3684b3570d0e4cf5c5
Contents?: true
Size: 576 Bytes
Versions: 3
Compression:
Stored size: 576 Bytes
Contents
require 'spec_helper' describe Popularity::Pinterest do context "valid url" do use_vcr_cassette "pinterest" subject { Popularity::Pinterest.new('http://google.com') } it "should return correct pin count" do expect(11278).to eq subject.pins end it "should calculate the correct total" do expect(subject.total).to eq subject.pins end context "json" do let(:json) { subject.to_json } it "should have required attributes in json" do expect(subject.pins).to eq(json["pins"]) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
popularity-0.1.1 | spec/pinterest_spec.rb |
popularity-0.1.0 | spec/pinterest_spec.rb |
popularity-0.0.1 | spec/pinterest_spec.rb |