Add tests for Terms of Service

[Delivers #18126053]
This commit is contained in:
Erik Michaels-Ober 2011-09-14 13:02:31 -07:00
parent 3f492b47f2
commit 50573df158
1 changed files with 7 additions and 0 deletions

View File

@ -108,4 +108,11 @@ class InfoWindowControllerTest < ActionController::TestCase
assert_select 'label', :count => 10 assert_select 'label', :count => 10
assert_select 'input[name="commit"]', :count => 3 assert_select 'input[name="commit"]', :count => 3
end end
test 'should show terms of service' do
get :tos
assert_response :success
assert_template 'info_window/tos'
assert_select 'h2', 'Terms of Service'
end
end end