summary refs log tree commit diff
path: root/lib/bacon.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bacon.rb')
-rw-r--r--lib/bacon.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/bacon.rb b/lib/bacon.rb
index 72342a3..3277503 100644
--- a/lib/bacon.rb
+++ b/lib/bacon.rb
@@ -140,7 +140,12 @@ module Bacon
         begin
           Counter[:depth] += 1
           @before.each { |block| instance_eval(&block) }
+          prev_req = Counter[:requirements]
           instance_eval(&spec)
+          if Counter[:requirements] == prev_req
+            raise Error.new(:missing,
+                            "empty specification: #{@name} #{description}")
+          end
           @after.each { |block| instance_eval(&block) }
         rescue Object => e
           ErrorLog << "#{e.class}: #{e.message}\n"