Initialize the slug field when doing the update tests

This commit is contained in:
Tim Almdal
2009-10-23 09:52:03 -07:00
parent 703f22abcb
commit aa85d27eab
2 changed files with 3 additions and 2 deletions

View File

@@ -47,7 +47,7 @@ class Photos_Controller_Test extends Unit_Test_Case {
$results = ob_get_contents();
ob_end_clean();
$this->assert_equal(json_encode(array("result" => "success")), $results);
$this->assert_equal(json_encode(array("result" => "success", "location" => "")), $results);
$this->assert_equal("new-slug", $photo->slug);
$this->assert_equal("new title", $photo->title);
$this->assert_equal("new description", $photo->description);