Sha256: 1cc19a20e7910719af9fb92b2466e63d0853c0dc1f9bb9f10174a7c455fb4e43

Contents?: true

Size: 292 Bytes

Versions: 6

Compression:

Stored size: 292 Bytes

Contents

require 'bacon'
require 'temple'

module TestHelper
  def with_html_safe(flag)
    String.send(:define_method, :html_safe?) { flag }
    yield
  ensure
    String.send(:undef_method, :html_safe?) if String.method_defined?(:html_safe?)
  end
end

class Bacon::Context
  include TestHelper
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
temple-0.2.0 test/helper.rb
temple-0.1.8 test/helper.rb
temple-0.1.7 test/helper.rb
temple-0.1.6 test/helper.rb
temple-0.1.5 test/helper.rb
temple-0.1.4 test/helper.rb