Top Level Namespace
Defined Under Namespace
Modules: TestHelper
Classes: Client, Resource, Session
Instance Method Summary
collapse
Instance Method Details
#rule(msg) ⇒ Object
61
62
63
64
65
66
67
68
69
|
# File 'lib/ruby_spec.rb', line 61
def rule(msg)
begin
yield
print " #{msg.to_s.lstrip.ljust(90)[0..70]}","PASSED"
rescue Exception => e
print " #{msg.to_s.lstrip.ljust(90)[0..70]}","FAILED #{e.to_s}"
end
puts ""
end
|
#test(msg, options) ⇒ Object
71
72
73
74
75
|
# File 'lib/ruby_spec.rb', line 71
def test(msg,options)
puts " Testing - #{msg.to_s}"
@session.add_resource(options)
yield
end
|