Skip to content

Instantly share code, notes, and snippets.

@jarib
Created August 9, 2009 00:33
Show Gist options
  • Save jarib/164560 to your computer and use it in GitHub Desktop.
Save jarib/164560 to your computer and use it in GitHub Desktop.
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