Sha256: 8b5536bcc431ab942deec0c095dfbaa3caa1ab49e285ef7e9a07e58bf354578a

Contents?: true

Size: 361 Bytes

Versions: 10

Compression:

Stored size: 361 Bytes

Contents

require 'erb'

class SmashingDocs::TestCase
  attr_reader :request, :response, :created_at, :information
  attr_accessor :template

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

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

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
smashing_docs-1.3.6 lib/test_case.rb
smashing_docs-1.3.5 lib/test_case.rb
smashing_docs-1.3.4 lib/test_case.rb
smashing_docs-1.3.3 lib/test_case.rb
smashing_docs-1.3.2 lib/test_case.rb
smashing_docs-1.3.1 lib/test_case.rb
smashing_docs-1.2.1 lib/test_case.rb
smashing_docs-1.2.0 lib/test_case.rb
smashing_docs-1.1.0 lib/test_case.rb
smashing_docs-1.0.0 lib/test_case.rb