class SmarfDoc::TestCase
Attributes
created_at[R]
information[R]
note[R]
request[R]
response[R]
template[RW]
Public Class Methods
new(request, response, note = '', information = {})
click to toggle source
# File lib/test_case.rb, line 7 def initialize(request, response, note = '', information = {}) @request, @response, @note, @information = request, response, note, information @created_at = Time.now end
Public Instance Methods
compile_template()
click to toggle source
# File lib/test_case.rb, line 12 def compile_template ERB.new(template).result binding end