Skip to content

Instantly share code, notes, and snippets.

@kinnerapriyap
Created December 9, 2019 06:12
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/eb719728f5c14c931cee077ba15d6089 to your computer and use it in GitHub Desktop.
Save kinnerapriyap/eb719728f5c14c931cee077ba15d6089 to your computer and use it in GitHub Desktop.
describe("isPersonRetired") {
describe("when hasPersonWorked is true") {
beforeEachGroup {
person.copy(hasPersonWorked = true)
}
describe("when isActive is true") {...}
describe("when isActive is false") {...}
}
describe("when hasPersonWorked is false") {
beforeEachGroup {
person.copy(hasPersonWorked = false)
}
describe("when isActive is true") {...}
describe("when isActive is false") {...}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment