diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/bacon.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/bacon.rb b/lib/bacon.rb index 945f1f1..0bede91 100644 --- a/lib/bacon.rb +++ b/lib/bacon.rb @@ -125,6 +125,14 @@ module Bacon Counter[:specifications] += 1 run_requirement description, block end + + def should(*args, &block) + if Counter[:depth]==0 + it('should '+args.first,&block) + else + super(*args,&block) + end + end def run_requirement(description, spec) Bacon.handle_requirement description do |