test/integration/navigation_test.rb in seiten-0.0.5 vs test/integration/navigation_test.rb in seiten-0.0.6

- old
+ new

@@ -1,11 +1,10 @@ require 'test_helper' class NavigationTest < ActionDispatch::IntegrationTest def test_returns_2_level_deep_navigation - p Seiten.config[:storage_directory] visit "/" assert has_content?("Home") assert has_content?("Products") assert has_content?("Logo Design") assert has_content?("Web Development") @@ -20,9 +19,16 @@ def test_does_not_return_3_level_deep_pages visit "/" assert !has_content?("Daniel Puglisi") assert !has_content?("Codegestalt") assert !has_content?("Kreatify") + end + + def test_returns_home_url + visit "/contact" + assert_equal "/contact", current_path + click_link "Home" + assert_equal "/", current_path end def test_returns_sub_navigation visit "/about/partners" assert has_content?("Daniel Puglisi")