diff options
author | Christian Neukirchen <chneukirchen@gmail.com> | 2012-03-16 19:03:58 +0100 |
---|---|---|
committer | Christian Neukirchen <chneukirchen@gmail.com> | 2012-03-16 19:15:11 +0100 |
commit | 2d0ff135846363e2baf00d43049b4e9fc4e70c47 (patch) | |
tree | 4ed39238ea7559a69818a414bc0af8203907e672 /lib | |
parent | 6d7a1a2c5566b292206fcf49bb0301f7d15bd48e (diff) | |
download | bacon-2d0ff135846363e2baf00d43049b4e9fc4e70c47.tar.gz bacon-2d0ff135846363e2baf00d43049b4e9fc4e70c47.tar.xz bacon-2d0ff135846363e2baf00d43049b4e9fc4e70c47.zip |
Whitespace cleanup
Diffstat (limited to 'lib')
-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) |