diff options
Diffstat (limited to 'test/functional/welcome_controller_test.rb')
-rw-r--r-- | test/functional/welcome_controller_test.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/test/functional/welcome_controller_test.rb b/test/functional/welcome_controller_test.rb index 2fd188c37..4f2ce8f72 100644 --- a/test/functional/welcome_controller_test.rb +++ b/test/functional/welcome_controller_test.rb @@ -107,9 +107,7 @@ class WelcomeControllerTest < ActionController::TestCase @request.session[:user_id] = 2 get :index - assert_no_tag 'script', - :attributes => {:type => "text/javascript"}, - :content => %r{warnLeavingUnsaved} + assert_select 'script', :text => %r{warnLeavingUnsaved}, :count => 0 end def test_logout_link_should_post |