Skip to content

Instantly share code, notes, and snippets.

@kinnerapriyap
Last active December 9, 2019 05:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kinnerapriyap/26f682cf9f10e2097e3641f91aa7809b to your computer and use it in GitHub Desktop.
Save kinnerapriyap/26f682cf9f10e2097e3641f91aa7809b to your computer and use it in GitHub Desktop.
describe("when isActive is false") {
beforeEachGroup {
person = person.copy(isActive = false)
}
...
describe("when getAge is less than RETIREMENT_AGE") {
beforeEachGroup {
person = person.copy(age = 55)
}
it("should return false") {
assertFalse(person.isPersonRetired())
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment