Skip to content

Commit

Permalink
Version13
Browse files Browse the repository at this point in the history
Just removing a no longer required method. Red -> Green -> REFACTOR.
  • Loading branch information
jenkoian committed Jan 20, 2015
1 parent 802936f commit 50fce97
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 19 deletions.
8 changes: 0 additions & 8 deletions spec/Jenko/House/HouseSpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,6 @@ function it_should_build_with_locations()
$house->getLocations()->shouldEqual($locations);
}

function it_should_set_location()
{
$location = Room::named('living room');
$this->setLocation($location);

$this->whereAmI()->shouldBe($location);
}

function it_should_allow_entering_rooms()
{
$room = Room::named('kitchen');
Expand Down
11 changes: 0 additions & 11 deletions src/Jenko/House/House.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,6 @@ public function getLocations()
return $this->locations;
}

/**
* @param Location $location
* @return $this
*/
public function setLocation(Location $location)
{
$this->currentLocation = $location;

return $this;
}

/**
* @return Location
*/
Expand Down

0 comments on commit 50fce97

Please sign in to comment.