summaryrefslogtreecommitdiffstats
path: root/test/integration/layout_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/integration/layout_test.rb')
-rw-r--r--test/integration/layout_test.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/integration/layout_test.rb b/test/integration/layout_test.rb
index 853bfea4a..682b9bee5 100644
--- a/test/integration/layout_test.rb
+++ b/test/integration/layout_test.rb
@@ -53,4 +53,14 @@ class LayoutTest < ActionController::IntegrationTest
:attributes => {:src => %r{^/javascripts/jstoolbar/textile.js}},
:parent => {:tag => 'head'}
end
+
+ def test_search_field_outside_project_should_link_to_global_search
+ get '/'
+ assert_select 'div#quick-search form[action=/search]'
+ end
+
+ def test_search_field_inside_project_should_link_to_project_search
+ get '/projects/ecookbook'
+ assert_select 'div#quick-search form[action=/projects/ecookbook/search]'
+ end
end