Sha256: 5191d14425cbbb7abbf866cddc878da505ae998dcb4455ef05c64bb816175c81
Contents?: true
Size: 655 Bytes
Versions: 2
Compression:
Stored size: 655 Bytes
Contents
# encoding: utf-8 require 'spec_helper' require 'contact-data' describe ContactData::Deprecated do let(:name) { 'Derek Jones III' } it 'searches for a contact by name' do result = ContactData::Deprecated.search(name) expect(result).to be_a(Hash) end it 'finds contact names in text' do text = 'lorem ipsum john smith dolor sit amet' result = ContactData::Deprecated.find_contacts_in(text) expect(result).to be_a(Hash) end it 'finds information about a url' do url = 'http://www.iana.org/numbers' result = ContactData::Deprecated.link_metadata(url) puts result # debug expect(result).to be_a(Hash) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
contact-data-0.0.5 | spec/contact-data_deprecated_spec.rb |
contact-data-0.0.4 | spec/contact-data_deprecated_spec.rb |