Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
20 lines (14 sloc) 336 Bytes
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
Something went wrong with that request. Please try again.