Sha256: 18de4bc1596c794831ef79bd4020b8472d60b2be68be73125c2e799c2a23389d

Contents?: true

Size: 340 Bytes

Versions: 2

Compression:

Stored size: 340 Bytes

Contents

$:.push File.expand_path("../../lib", __FILE__)

require 'minitest/spec'
require 'minitest/autorun'

require 'cutaneous'

class TestContext < Cutaneous::Context
  def escape(value)
    value.gsub(/</, "&lt;").gsub(/>/, "&gt;")
  end
end

class MiniTest::Spec
  def ContextHash(params = {})
    TestContext.new(Object.new, params)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
cutaneous-0.1.1 test/helper.rb
cutaneous-0.1.0 test/helper.rb