Skip to content

Instantly share code, notes, and snippets.

@tatey

tatey/0_spec.cr Secret

Created June 30, 2018 23:51
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 tatey/18beb68b8c0e000d93c14f88cd37e9f8 to your computer and use it in GitHub Desktop.
Save tatey/18beb68b8c0e000d93c14f88cd37e9f8 to your computer and use it in GitHub Desktop.
require "./spec_helper"
describe "Nested Contexts" do
Spec.before_each do
puts "1"
end
context "inner" do
Spec.before_each do
puts "2"
end
it "is inner" do
end
end
it "is outer" do
end
end
todone(master*)$ crystal spec
1
2
.1
2
.
Finished in 1.8 milliseconds
2 examples, 0 failures, 0 errors, 0 pending
todone(master*)$ crystal spec
1
2
.1
.
Finished in 1.8 milliseconds
2 examples, 0 failures, 0 errors, 0 pending
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment