Created
February 3, 2009 06:32
-
-
Save dchelimsky/57355 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
def given(name, &block) | |
$givens ||= {} | |
$givens[name] = block | |
end | |
Spec::Runner.configure do |c| | |
c.on_option :given do |group, value| | |
group.description += value | |
group.prepend_before $givens[value] | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment