Check the actual http response code.

This commit is contained in:
jgen
2014-02-19 16:40:28 -05:00
parent f1a516ef18
commit 1a7cbc9b2a
2 changed files with 3 additions and 1 deletions

View File

@@ -11,7 +11,8 @@ class AliasEditorTest extends ShimmieWebTestCase {
$this->assert_title("Alias List");
$this->set_field('oldtag', "test1");
$this->set_field('newtag', "test2");
$this->click("Add");
$this->clickSubmit("Add");
$this->assertResponse(302);
$this->get_page('alias/list');
if (!$this->assert_text("test1")) {