Sha256: a8ccb323ebde356ce4d2a5e888daf8da297a03c8ed46bb0d5d6d5342ba5b1b65
Contents?: true
Size: 639 Bytes
Versions: 1
Compression:
Stored size: 639 Bytes
Contents
require File.dirname(__FILE__) + '/../test/test_helper' # Test that ERBs still work correctly. # See /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/test/template/template_object_test.rb. class TemplateObjectTest < Test::Unit::TestCase def setup @template_path = VIEW_PATH + "/hello_world.erb" end def test_create_valid_template template = ActionView::Template.new(@template_path, true) assert_equal ActionView::TemplateHandlers::XssShieldERB, template.handler assert_equal @template_path, template.path assert_nil template.instance_variable_get(:"@source") assert_equal "erb", template.extension end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
xss_shield-2.0.0 | test/template_object_test.rb |