Skip to content

Instantly share code, notes, and snippets.

@mackwic
Last active May 28, 2016 19:34
Show Gist options
  • Select an option

  • Save mackwic/8c4619bb04be5e47804454396693806f to your computer and use it in GitHub Desktop.

Select an option

Save mackwic/8c4619bb04be5e47804454396693806f to your computer and use it in GitHub Desktop.
#[test]
fn runner_efectively_run_tests() {
let mut ran = false;
let mut runner = describe("A root", move |ctx| {
ctx.it("is expected to run", move || {
ran = true
})
});
assert_eq!(Ok(()), runner.run());
assert_eq!(true, ran)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment