Permalink
Browse files

HelloWorldSpec now correctly expects "Dear" during it_should_address_…

…someone_with_a_gender_specific_salutation

Also stubbed $person->isMale()
  • Loading branch information...
peterjmit committed May 6, 2013
1 parent d03dd5a commit 1038519d8985dd095d92cb87d35e605caa728a13
Showing with 2 additions and 1 deletion.
  1. +2 −1 spec/HelloWorldSpec.php
View
@@ -34,7 +34,8 @@ function it_should_address_someone_with_a_gender_specific_salutation($person)
{
$person->getName()->willReturn('Jane');
$person->isFemale()->willReturn(true);
$person->isMale()->willReturn(false);
$this->addressSomeoneWithSalutation($person)->shouldReturn('Hello Ms Jane');
$this->addressSomeoneWithSalutation($person)->shouldReturn('Dear Ms. Jane');
}
}

0 comments on commit 1038519

Please sign in to comment.