class RainforestRubyRuntime::Test
Attributes
id[R]
steps[R]
title[R]
Public Class Methods
new(id: , title: , callback: , &block)
click to toggle source
# File lib/rainforest_ruby_runtime/test.rb, line 5 def initialize(id: , title: , callback: , &block) @id = id @title = title @steps = [] @block = block @callback = callback end
Public Instance Methods
run()
click to toggle source
# File lib/rainforest_ruby_runtime/test.rb, line 13 def run @callback.before_test(self) @block.call @callback.after_test(self) end