Sha256: 699eb2aa6f37a1cfd7ab7188404243be176fcdc6361f679f199dd20ef08807db
Contents?: true
Size: 629 Bytes
Versions: 1
Compression:
Stored size: 629 Bytes
Contents
# encoding: UTF-8 require File.expand_path('../helper', __FILE__) require 'erb' class BaseTest < Test::Unit::TestCase setup do @base = aldebaran.new(aldebaran::Base) @base.set :views, File.dirname(__FILE__) + "/views" end it 'allows unicode strings in ascii templates per default (1.9)' do next unless defined? Encoding @base.new!.erb(File.read(@base.views + "/ascii.erb").encode("ASCII"), {}, :value => "åkej") end it 'allows ascii strings in unicode templates per default (1.9)' do next unless defined? Encoding @base.new!.erb(:utf8, {}, :value => "Some Lyrics".encode("ASCII")) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
aldebaran-1.0.1 | test/encoding_test.rb |