Sha256: db267a3c435fc490e2ca9eadb7b5fee164c0df63a1b198bd4c798a134dda689c

Contents?: true

Size: 336 Bytes

Versions: 1

Compression:

Stored size: 336 Bytes

Contents

require 'contextual/safe_erubis'

describe Contextual do
  it 'should allow fixnums' do
    template = Contextual::SafeErubis.new <<-TEMPLATE
    Number: <%= 42 %>
    TEMPLATE

    result = template.result(binding)

    result.should =~ /Number:\s*42/
  end

  private

  def output_buffer
    ::Erubis::ContextualBuffer.new
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
contextual-0.0.2-java spec/safe_erubis_spec.rb