Sha256: 966a76fe2a123fec03dcc898a04d2e4300c41ddc845a2c8a6085b3fd1a9209be

Contents?: true

Size: 551 Bytes

Versions: 11

Compression:

Stored size: 551 Bytes

Contents

require File.expand_path('../../helper', __FILE__)

class SetTest < TestCase
  setup do
    @path = fixture('one')
    @project = Project.new(@path)
    Dir.chdir @path
  end

  test "breadcrumbs" do
    assert Page['/about/index.css'].breadcrumbs.is_a?(Hyde::Set)
  end

  test "children" do
    assert Page['/'].children.is_a?(Hyde::Set)
  end

  test "siblings" do
    assert Page['/about'].siblings.is_a?(Hyde::Set)
  end

  test "children" do
    set = Page['/'].children.find(:hello => 'world')
    assert set.paths == ['/hello.html']
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
hydeweb-0.2.3 test/unit/set_test.rb
hydeweb-0.2.2 test/unit/set_test.rb
hydeweb-0.1.14 test/unit/set_test.rb
hydeweb-0.1.13 test/unit/set_test.rb
hydeweb-0.1.12 test/unit/set_test.rb
hydeweb-0.1.11 test/unit/set_test.rb
hydeweb-0.1.10 test/unit/set_test.rb
hydeweb-0.1.9 test/unit/set_test.rb
hydeweb-0.1.8 test/unit/set_test.rb
hydeweb-0.1.7 test/unit/set_test.rb
hydeweb-0.1.6 test/unit/set_test.rb