Skip to content

Instantly share code, notes, and snippets.

@distributedlife
Created September 20, 2012 13:15
Show Gist options
  • Select an option

  • Save distributedlife/3755830 to your computer and use it in GitHub Desktop.

Select an option

Save distributedlife/3755830 to your computer and use it in GitHub Desktop.
notes for vidcast on when/why to mock and the value of separating concerns
describe "given a valiant hero", ->
describe "when she gets crushed by an anvil", ->
it "should play the death music", ->
it "should calculate the final score", ->
it "should update the leader board", ->
it "should play the death animation", ->
describe "when she falls into a pit of spikes", ->
it "should play the death music", ->
it "should calculate the final score", ->
it "should update the leader board", ->
it "should play the death animation", ->
describe "when she get mauled by a liger", ->
it "should play the death music", ->
it "should calculate the final score", ->
it "should update the leader board", ->
it "should play the death animation", ->
describe "given a valiant hero", ->
describe "when she gets crushed by an anvil", ->
it "then our hero should die", ->
describe "when she falls into a pit of spikes", ->
it "then our hero should die", ->
describe "when she get mauled by a liger", ->
it "then our hero should die", ->
describe "when our hero dies", ->
it "should play the death music", ->
it "should calculate the final score", ->
it "should update the leader board", ->
it "should play the death animation", ->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment