diff options
Diffstat (limited to 'lib/bacon.rb')
-rw-r--r-- | lib/bacon.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/bacon.rb b/lib/bacon.rb index 45d4bf8..abd52c1 100644 --- a/lib/bacon.rb +++ b/lib/bacon.rb @@ -132,13 +132,13 @@ module Bacon class Context attr_reader :name, :block - + def initialize(name, &block) @name = name @before, @after = [], [] @block = block end - + def run return unless name =~ RestrictContext Counter[:context_depth] += 1 @@ -160,7 +160,7 @@ module Bacon Counter[:specifications] += 1 run_requirement description, block end - + def should(*args, &block) if Counter[:depth]==0 it('should '+args.first,&block) |