diff --git a/test/Github/Tests/Api/RepoTest.php b/test/Github/Tests/Api/RepoTest.php
index <HASH>..<HASH> 100644
--- a/test/Github/Tests/Api/RepoTest.php
+++ b/test/Github/Tests/Api/RepoTest.php
@@ -417,6 +417,22 @@ class RepoTest extends TestCase
         $this->assertInstanceOf('Github\Api\Repository\Releases', $api->releases());
     }
 
+	/**
+	 * @test
+	 */
+	public function shouldGetCommitActivity()
+	{
+		$expectedArray = array(array('days' => array(0, 3, 26, 20, 39, 1, 0), 'total' => 89, 'week' => 1336280400));
+
+		$api = $this->getApiMock();
+		$api->expects($this->once())
+			->method('get')
+			->with('repos/KnpLabs/php-github-api/stats/commit_activity')
+			->will($this->returnValue($expectedArray));
+
+		$this->assertEquals($expectedArray, $api->activity('KnpLabs', 'php-github-api'));
+	}
+
     protected function getApiClass()
     {
         return 'Github\Api\Repo';
Added test for the new activity() method.