assign_test_data(label, data)
click to toggle source
def assign_test_data(label, data)
@test_data_label = label
@test_data = data
end
have_test_data?()
click to toggle source
def have_test_data?
not @test_data_label.nil?
end
interrupted()
click to toggle source
def interrupted
@interrupted = true
end
interrupted?()
click to toggle source
def interrupted?
@interrupted
end
passed?()
click to toggle source
problem_occurred()
click to toggle source
def problem_occurred
@passed = false
end
test_finished()
click to toggle source
def test_finished
@elapsed_time = Time.now - @start_time
end
test_started()
click to toggle source
def test_started
@start_time = Time.now
end