Created
August 9, 2009 00:33
-
-
Save jarib/164560 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "rubygems" | |
require "spec/autorun" | |
Spec::Runner.configure do |config| | |
config.before(:all) { puts "before all" } | |
end | |
describe "parent describe" do | |
describe "child describe 1" do | |
it "one" do | |
puts "one" | |
end | |
it "two" do | |
puts "two" | |
end | |
end | |
describe "child describe 2" do | |
it "third" do | |
puts "third" | |
end | |
end | |
end | |
## output ## | |
# | |
# before all | |
# one | |
# .two | |
# .before all | |
# third | |
# . | |
# | |
# Finished in 0.003012 seconds | |
# | |
# 3 examples, 0 failures |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment