Sha256: c731b25bbf4fcf35d82bc5260469f1714abee4cf97d539a586b372e6232875cc

Contents?: true

Size: 323 Bytes

Versions: 4

Compression:

Stored size: 323 Bytes

Contents

require 'test_helper'

class RedirectTest < ActionDispatch::IntegrationTest

  def test_redirects_to_specified_page
    visit "/"
    click_link "Hire us"
    assert_equal "/contact", current_path
  end

  def test_redirects_to_first_child_page
    visit "/about"
    assert_equal "/about/our-team", current_path
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

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