Sha256: ed0dc5b28de5a6a3481d05c40a830acc749f40f2ca0d9064be53e45ba433b4f3

Contents?: true

Size: 404 Bytes

Versions: 3

Compression:

Stored size: 404 Bytes

Contents

require 'spec_helper'

describe HentryConsumer do

  it { should respond_to :parse }

  describe "parsing a file" do
    let(:result) { HentryConsumer.parse(File.open("spec/support/example.html")) }

    it "should be a HentryConsumer object" do
      result.should be_an_instance_of HentryConsumer::HFeed
    end

    it "should have 2 enties" do
      result.entries.size.should eq 2
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
hentry_consumer-0.8.3 spec/lib/hentry_consumer_spec.rb
hentry_consumer-0.8.2 spec/lib/hentry_consumer_spec.rb
hentry_consumer-0.8.1 spec/lib/hentry_consumer_spec.rb