module Robottelo::Reporter::TestAttributes
Public Instance Methods
get_test_attributes(meth)
click to toggle source
# File lib/robottelo/reporter/attributes.rb, line 25 def get_test_attributes(meth) test_attr = {} test_attr = @__test_attributes__ if defined?(@__test_attributes__) meth_test_attr = test_attr[meth.to_s] meth_test_attr = {} if meth_test_attr.nil? meth_test_attr end
method_added(meth)
click to toggle source
Calls superclass method
# File lib/robottelo/reporter/attributes.rb, line 12 def method_added(meth) name = meth.to_s if name.start_with?('test') (@__test_attributes__ ||= {})[name] = @__last_test_attributes__ if @__last_test_attributes__ end @__last_test_attributes__ = {} super end
test_attributes(attr)
click to toggle source
# File lib/robottelo/reporter/attributes.rb, line 21 def test_attributes(attr) @__last_test_attributes__ = attr end