Permalink
Browse files

Updating test to reflect last changes made by pull #413.

  • Loading branch information...
1 parent 4059eed commit 3a3d89d6d1bd1ddbdda2c50176be9d10cceb4244 @renan renan committed Jan 16, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Cake/Test/Case/View/ScaffoldViewTest.php
@@ -281,7 +281,7 @@ public function testViewScaffold() {
//TODO: add specific tests for fields.
$this->assertRegExp('/<a href="\/scaffold_users\/view\/1">1<\/a>/', $result); //belongsTo links
$this->assertRegExp('/<li><a href="\/scaffold_mock\/edit\/1">Edit Scaffold Mock<\/a>\s<\/li>/', $result);
- $this->assertRegExp('/<li><a href="\/scaffold_mock\/delete\/1"[^>]*>Delete Scaffold Mock<\/a>\s*<\/li>/', $result);
+ $this->assertRegExp('/<a href="\#" onclick="if[^>]*>Delete Scaffold Mock<\/a>\s<\/li>/', $result);
//check related table
$this->assertRegExp('/<div class="related">\s*<h3>Related Scaffold Comments<\/h3>\s*<table cellpadding="0" cellspacing="0">/', $result);
$this->assertRegExp('/<li><a href="\/scaffold_comments\/add">New Comment<\/a><\/li>/', $result);

0 comments on commit 3a3d89d

Please sign in to comment.