diff --git a/tests/contexts/HomeOwnerContext.php b/tests/contexts/HomeOwnerContext.php index d66724b..0e752b8 100644 --- a/tests/contexts/HomeOwnerContext.php +++ b/tests/contexts/HomeOwnerContext.php @@ -50,7 +50,7 @@ public function iEnterThroughTheFrontDoor() public function iShouldBeInThe($location) { $whereAmI = $this->house->whereAmI(); - PHPUnit_Framework_Assert::assertEquals(Room::named($location), $whereAmI); + PHPUnit_Framework_Assert::assertEquals($location, $whereAmI->getName()); } /**