add a message of `describe' to description of tap's output

## before
not ok 1 - has one window: FAILED

## after
not ok 1 - Application 'test' has one window: FAILED
This commit is contained in:
Watson
2013-01-18 17:25:29 +09:00
parent dbf76d4e0f
commit 95fb1bd32a

View File

@@ -175,12 +175,18 @@ module Bacon
module TapOutput
@@count = 1
@@describe = ""
def handle_specification_begin(name); end
def handle_specification_end ; end
def handle_specification_begin(name)
@@describe << "#{name} "
end
def handle_specification_end
@@describe = ""
end
def handle_requirement_begin(description)
@description = description
@description = @@describe + description
ErrorLog.replace ""
end