Skip to content

Instantly share code, notes, and snippets.

@jtadeulopes
Created July 11, 2014 13:21
Show Gist options
  • Save jtadeulopes/693e45a8751631bc994a to your computer and use it in GitHub Desktop.
Save jtadeulopes/693e45a8751631bc994a to your computer and use it in GitHub Desktop.
Conditional hooks
describe Classroom do
subject(:classroom) { Classroom.new }
context "when the children are rowdy" do
before(:each, run: true) do
classroom.throw_pizza_party
end
it "example1", run: :true
it "example2"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment