Skip to content

Instantly share code, notes, and snippets.

func testShakingTree_makesBirdFly() {
// Setup
let bird = mock(Bird.self)
let tree = Tree(with: bird)
// Given the bird can fly
given(bird.canFly()) ~> true
// When the tree is shaken
tree.shake()

Keybase proof

I hereby claim:

To claim this, I am signing this object: