Last active
December 9, 2019 05:45
-
-
Save kinnerapriyap/26f682cf9f10e2097e3641f91aa7809b 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("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