Created
February 11, 2016 10:42
-
-
Save RiverGlide/8b6c33e962e1791c640c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Before | |
public void ourUsersCanBrowseTheWeb() { | |
james.can(BrowseTheWeb.with(hisBrowser)); | |
jane.can(BrowseTheWeb.with(herBrowser)); | |
} | |
@Test | |
public void should_not_affect_todos_belonging_to_another_user() { | |
givenThat(james).wasAbleTo(Start.withATodoListContaining(“Walk the dog”, “Put out the garbage”)); | |
andThat(jane).wasAbleTo(Start.withATodoListContaining(“Walk the dog”, “Feed the cat”)); | |
when(james).attemptsTo( | |
CompleteItem.called(“Walk the dog”), | |
Clear.completedItems() | |
); | |
then(jane).should(seeThat(TheItems.displayed(), contains(“Walk the dog”, “Feed the cat”))); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment