diff options
author | Phil Manavopoulos <phil.manavopoulos@bytemark.co.uk> | 2017-09-12 16:01:18 +0100 |
---|---|---|
committer | Phil Manavopoulos <phil.manavopoulos@bytemark.co.uk> | 2017-09-12 16:01:18 +0100 |
commit | 464901c752385592b5d574191c8871034c011f50 (patch) | |
tree | 027dbcbb4cf4311c1fcdcc50d69fd9db57bb7a04 | |
parent | 8cb68ee8a1928bc9fd6f6d44937b3a8ea84b1f43 (diff) |
Correctly make AJAX request in 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") |