Sha256: 6ba9dd64ef1a1f287e0f582633ec2cf1abcee57fce222a5d93697439caafc21e

Contents?: true

Size: 396 Bytes

Versions: 1

Compression:

Stored size: 396 Bytes

Contents

require 'erb'

class SmarfDoc::TestCase
  attr_reader :request, :response, :created_at, :note, :information
  attr_accessor :template

  def initialize(request, response, note = '', information = {})
    @request, @response, @note, @information = request, response, note, information
    @created_at         = Time.now
  end

  def compile_template
    ERB.new(template).result binding
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
smarf_doc-1.0.0 lib/test_case.rb