Sha256: 26777a1c92998219c9b160b6db5857d834f5b4937986c0233274a3907a13708d

Contents?: true

Size: 525 Bytes

Versions: 4

Compression:

Stored size: 525 Bytes

Contents

require 'helper'

class TestPage < Test::Unit::TestCase
  def setup(site = 'default')
    @project = get_project site
    @page = Hyde::Page['index.html', @project]
  end

  should "raise a method missing error" do
    assert_raises NoMethodError do
      @page.xxx
    end

    # Should NOT raise a method missing error
    @page.layout
    @page.filename
    @page.renderer
    @page.meta
    @page.layout
    @page.project
  end

  should "register the right project" do
    assert_equal @project, @page.project
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
hydeweb-0.0.8.pre2 test/test_page.rb
hydeweb-0.0.8.pre1 test/test_page.rb
hydeweb-0.0.7 test/test_page.rb
hydeweb-0.0.5 test/test_page.rb