Sha256: 75d1386cca479a043b461b82f56565bcb86331319a529db5d313385dd97518ae

Contents?: true

Size: 742 Bytes

Versions: 4

Compression:

Stored size: 742 Bytes

Contents

require 'test_helper'

class LayoutTest < ActionDispatch::IntegrationTest

  def test_returns_default_layout
    visit "/about/works"
    assert has_content?("Default Layout"), "not rendered default layout"
  end

  def test_returns_home_layout
    visit "/"
    assert has_content?("Home Layout"), "not rendered home layout"
  end

  def test_returns_inherited_layout
    visit "/products/logo-design"
    assert has_content?("Products Layout"), "not rendered inherited layout"
  end

  def test_returns_no_inherited_layout
    visit "/about/our-team/switzerland"
    assert has_content?("Default Layout"), "not rendered default layout"
    visit "/contact"
    assert has_content?("Default Layout"), "not rendered default layout"
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
seiten-0.0.8 test/integration/layout_test.rb
seiten-0.0.7 test/integration/layout_test.rb
seiten-0.0.6 test/integration/layout_test.rb
seiten-0.0.5 test/integration/layout_test.rb