Sha256: 8e87e90d8427a90e4071400692c5a5039ee331f8d190dcbfa7efff8b1ed4ea43
Contents?: true
Size: 888 Bytes
Versions: 3
Compression:
Stored size: 888 Bytes
Contents
require 'spec_helper' describe HentryConsumer::HCard do before do stub_const("HentryConsumer::FormatRules::REQUIRED", [:url, :email]) stub_const("HentryConsumer::FormatRules::UNIQUE", [:uid, :bookmark]) end describe "example.html" do let(:result) { HentryConsumer.parse(File.open("spec/support/example.html")) } let(:entry) { result.entries.first } subject { entry.authors.first } its(:name) { should eq ["Jessica Suttles"]} its(:emails) { should have(1).things } its(:urls) { should have(2).things } end describe "nested_example.html" do let(:result) { HentryConsumer.parse(File.open("spec/support/nested_example.html")) } let(:entry) { result.entries.first } subject { entry.authors.first } its(:name) { should eq ["Jessica"]} its(:emails) { should have(1).things } its(:urls) { should have(1).things } end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
hentry_consumer-0.8.3 | spec/lib/hentry_consumer/h_card_spec.rb |
hentry_consumer-0.8.2 | spec/lib/hentry_consumer/h_card_spec.rb |
hentry_consumer-0.8.1 | spec/lib/hentry_consumer/h_card_spec.rb |