lib/script/step.rb in script-0.0.2 vs lib/script/step.rb in script-0.0.3
- old
+ new
@@ -4,7 +4,18 @@
@block = block
end
def run
@block.call
+ @result = :succeded
+ rescue
+ @result = :failed
+ end
+
+ def result
+ @result
+ end
+
+ def headline
+ @headline
end
end