diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/tc_mauve_web_interface.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/tc_mauve_web_interface.rb b/test/tc_mauve_web_interface.rb index d2817d5..c93c25c 100644 --- a/test/tc_mauve_web_interface.rb +++ b/test/tc_mauve_web_interface.rb @@ -121,7 +121,7 @@ EOF assert session['__FLASH__'].empty? # Check we can't access AJAX requests before logging in. - get '/ajax/alerts_table/raised/subject' + get '/ajax/alerts_table/raised/subject', {}, {:xhr => true} refute(session['__FLASH__'].has_key?(:error), "The flash error shouldn't have been set from an AJAX call") follow_redirect! while last_response.redirect? assert_equal(403, last_response.status, "The HTTP status wasn't 403") |