Sha256: 7961b163ad19c26368d9b6bdb2d330e76805acf8ceae728937b24fa73b41df6e

Contents?: true

Size: 752 Bytes

Versions: 1

Compression:

Stored size: 752 Bytes

Contents

require File.dirname(__FILE__) + '/test_helper.rb'

module Ubiquitously
  class PageTest < ActiveSupport::TestCase
    context "Page" do
      setup do
        @page = Ubiquitously::Page.new(:url => "./test/meta.html")
        @title = "Viatropos"
        @description = "Creativity and Emergence. A personal blog about writing code that the world can leverage."
        @tags = %w(jquery html-5 css3 ajax ruby-on-rails ruby-on-rails-developer ruby-on-rails-examples rails-deployment flex actionscript flash open-source)
      end
      
      should "parse the page" do
        @page.parse
        assert_equal @title, @page.title
        assert_equal @description, @page.description
        assert_equal @tags, @page.tags
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ubiquitously-0.1.0 test/test_page.rb