Last active
December 9, 2019 05:45
-
-
Save kinnerapriyap/a047f0460f92eb74662dea806894eb60 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
describe("isPersonRetired") { | |
describe("when isActive is true") { | |
beforeEachGroup { | |
person = person.copy(isActive = true) | |
} | |
describe("when getAge is greater than RETIREMENT_AGE") { | |
beforeEachGroup { person = person.copy(age = 65) } | |
} | |
describe("when getAge is less than RETIREMENT_AGE") { | |
beforeEachGroup { person = person.copy(age = 55) } | |
} | |
} | |
describe("when isActive is false") { | |
beforeEachGroup { | |
person = person.copy(isActive = false) | |
} | |
describe("when getAge is greater than RETIREMENT_AGE") { | |
beforeEachGroup { person = person.copy(age = 65) } | |
} | |
describe("when getAge is less than RETIREMENT_AGE") { | |
beforeEachGroup { person = person.copy(age = 55) } | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment