Sha256: ba750ea4efd0a6e17055900a5dfe92c5c1354084b7166f259965ec7ecb5bbaed

Contents?: true

Size: 512 Bytes

Versions: 5

Compression:

Stored size: 512 Bytes

Contents

require 'hentry_consumer'

describe HentryConsumer::HEntry do
  before do
    stub_const("HentryConsumer::FormatRules::REQUIRED", [:url, :email])
    stub_const("HentryConsumer::FormatRules::UNIQUE", [:uid, :bookmark])
  end

  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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
hentry_consumer-0.4.0 spec/lib/hentry_consumer/h_card_spec.rb
hentry_consumer-0.3.2 spec/lib/hentry_consumer/h_card_spec.rb
hentry_consumer-0.3.1 spec/lib/hentry_consumer/h_card_spec.rb
hentry_consumer-0.3.0 spec/lib/hentry_consumer/h_card_spec.rb
hentry_consumer-0.2.0 spec/lib/hentry_consumer/h_card_spec.rb