Sha256: bc7960c90b138d81ba1c615079d66f53123bc3ef2e0e0fbefa029b0ff0dcf29c

Contents?: true

Size: 1.04 KB

Versions: 24

Compression:

Stored size: 1.04 KB

Contents

require File.dirname(__FILE__) + '/test_helper'
require 'mofo/hentry'

context "A parsed hEntry object" do
  setup do
    $hentry ||= HEntry.find(:first => fixture(:hatom))
  end

  specify "should have a title" do
    $hentry.entry_title.should.equal "“A Rails Toolbox”"
  end

  specify "should have an author string " do
    $hentry.author.should.be.an.instance_of HCard
    $hentry.author.fn.should.equal "Chris"
  end

  specify "should have content" do
    $hentry.entry_content.should.be.an.instance_of String
  end

  specify "should have an attached published date object" do
    $hentry.published.should.be.an.instance_of Time
  end

  specify "should have an inferred updated attribute which references the published date object" do
    $hentry.updated.should.be.an.instance_of Time
    $hentry.updated.should.be $hentry.published
  end

  specify "should have a bookmark (permalink)" do
    $hentry.bookmark.should.equal "/post/13"
  end

  specify "should have an array of tags" do
    $hentry.tags.should.be.an.instance_of Array
  end
end

Version data entries

24 entries across 17 versions & 3 rubygems

Version Path
calagator-1.0.0 vendor/gems/mofo-0.2.8/test/hatom_test.rb
grokus-1.0.0.9 vendor/gems/mofo-0.2.8/test/hatom_test.rb
grokus-1.0.0.8 vendor/gems/mofo-0.2.8/test/hatom_test.rb
grokus-1.0.0.7 vendor/gems/mofo-0.2.8/test/hatom_test.rb
grokus-1.0.0.6 vendor/gems/mofo-0.2.8/test/hatom_test.rb
grokus-1.0.0.5 vendor/gems/mofo-0.2.8/test/hatom_test.rb
grokus-1.0.0.3 vendor/gems/mofo-0.2.8/test/hatom_test.rb
grokus-1.0.0.2 vendor/gems/mofo-0.2.8/test/hatom_test.rb
grokus-1.0.0.1 vendor/gems/mofo-0.2.8/test/hatom_test.rb
calagator-1.0.0.rc3 vendor/gems/mofo-0.2.8/test/hatom_test.rb
mofo-0.2.10 test/hatom_test.rb
mofo-0.2.10 ./test/hatom_test.rb
mofo-0.2.3 ./test/hatom_test.rb
mofo-0.2.3 test/hatom_test.rb
mofo-0.2.4 ./test/hatom_test.rb
mofo-0.2.4 test/hatom_test.rb
mofo-0.2.5 ./test/hatom_test.rb
mofo-0.2.5 test/hatom_test.rb
mofo-0.2.6 ./test/hatom_test.rb
mofo-0.2.6 test/hatom_test.rb