Permalink
Browse files

Oops. I did it again.

  • Loading branch information...
1 parent f68f2ed commit cf9aeaf7737a3346b388c740ee374d9d80fa1613 @klaussilveira committed Mar 29, 2013
Showing with 3 additions and 3 deletions.
  1. +3 −3 tests/InterfaceTest.php
View
6 tests/InterfaceTest.php
@@ -148,8 +148,8 @@ public function testRepositoryPage()
$this->assertTrue($client->getResponse()->isOk());
$this->assertCount(1, $crawler->filter('.tree tr:contains("README.md")'));
$this->assertCount(1, $crawler->filter('.tree tr:contains("test.php")'));
- $this->assertCount(1, $crawler->filter('.readme-header:contains("README.md")'));
- $this->assertEquals("## GitTest\nGitTest is a *test* repository!", $crawler->filter('#readme-content')->eq(0)->text());
+ $this->assertCount(1, $crawler->filter('.md-header:contains("README.md")'));
+ $this->assertEquals("## GitTest\nGitTest is a *test* repository!", $crawler->filter('#md-content')->eq(0)->text());
$this->assertEquals('/GitTest/blob/master/README.md', $crawler->filter('.tree tr td')->eq(0)->filter('a')->eq(0)->attr('href'));
$this->assertEquals('/GitTest/blob/master/test.php', $crawler->filter('.tree tr td')->eq(3)->filter('a')->eq(0)->attr('href'));
@@ -166,7 +166,7 @@ public function testRepositoryPage()
$this->assertEquals('/foobar/tree/master/myfolder/', $crawler->filter('.tree tr td')->eq(0)->filter('a')->eq(0)->attr('href'));
$this->assertEquals('/foobar/tree/master/testfolder/', $crawler->filter('.tree tr td')->eq(3)->filter('a')->eq(0)->attr('href'));
$this->assertEquals('/foobar/blob/master/bar.json', $crawler->filter('.tree tr td')->eq(6)->filter('a')->eq(0)->attr('href'));
- $this->assertCount(0, $crawler->filter('.readme-header'));
+ $this->assertCount(0, $crawler->filter('.md-header'));
$this->assertEquals('master', $crawler->filter('.dropdown-menu li')->eq(1)->text());
}

0 comments on commit cf9aeaf

Please sign in to comment.