Mercurial > hg > soundsoftware-site
comparison test/integration/.svn/text-base/layout_test.rb.svn-base @ 441:cbce1fd3b1b7 redmine-1.2
Update to Redmine 1.2-stable branch (Redmine SVN rev 6000)
| author | Chris Cannam |
|---|---|
| date | Mon, 06 Jun 2011 14:24:13 +0100 |
| parents | 8661b858af72 |
| children |
comparison
equal
deleted
inserted
replaced
| 245:051f544170fe | 441:cbce1fd3b1b7 |
|---|---|
| 19 | 19 |
| 20 get "/admin" | 20 get "/admin" |
| 21 assert_response :forbidden | 21 assert_response :forbidden |
| 22 assert_select "#admin-menu", :count => 0 | 22 assert_select "#admin-menu", :count => 0 |
| 23 end | 23 end |
| 24 | |
| 25 def test_top_menu_and_search_not_visible_when_login_required | |
| 26 with_settings :login_required => '1' do | |
| 27 get '/' | |
| 28 assert_select "#top-menu > ul", 0 | |
| 29 assert_select "#quick-search", 0 | |
| 30 end | |
| 31 end | |
| 32 | |
| 33 def test_top_menu_and_search_visible_when_login_not_required | |
| 34 with_settings :login_required => '0' do | |
| 35 get '/' | |
| 36 assert_select "#top-menu > ul" | |
| 37 assert_select "#quick-search" | |
| 38 end | |
| 39 end | |
| 40 | |
| 41 def test_wiki_formatter_header_tags | |
| 42 Role.anonymous.add_permission! :add_issues | |
| 43 | |
| 44 get '/projects/ecookbook/issues/new' | |
| 45 assert_tag :script, | |
| 46 :attributes => {:src => %r{^/javascripts/jstoolbar/textile.js}}, | |
| 47 :parent => {:tag => 'head'} | |
| 48 end | |
| 24 end | 49 end |
