diff options
-rw-r--r-- | lib/bacon.rb | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/bacon.rb b/lib/bacon.rb index 26079e3..256cd0c 100644 --- a/lib/bacon.rb +++ b/lib/bacon.rb @@ -257,11 +257,8 @@ end module Kernel private def describe(*args, &block) - befores = instance_variable_get('@before') || [] context = Bacon::Context.new(args.join(' '), &block) - befores.each do |b| - context.before &b - end + (instance_variable_get('@before') || []).each { |b| context.before &b } context.run context end |