Sha256: 2bc4cf9f20bc72d12f326f3d250882e1d626360e926ca6707727365e29392365
Contents?: true
Size: 926 Bytes
Versions: 9
Compression:
Stored size: 926 Bytes
Contents
# encoding: utf-8 require 'spec_helper' require 'contact-data' describe ContactData::Link do let(:url) { 'http://iana.org' } it 'gets latest links with related slug' do VCR.use_cassette('links_latest') do result = ContactData::Link.latest verbose: true expect(result).to be_an(Array) end end it 'gets metadata about a url' do VCR.use_cassette('links_info_search') do result = ContactData::Link.search url: url, verbose: true expect(result).to be_a(Hash) end end it 'gets metadata about a url when passed a url as a string' do VCR.use_cassette('links_info_search') do result = ContactData::Link.search url expect(result).to be_a(Hash) end end it 'gets metadata & contact from a url' do VCR.use_cassette('links_info_search') do result = ContactData::Link.info url: url, verbose: true expect(result).to be_a(Hash) end end end
Version data entries
9 entries across 9 versions & 1 rubygems