Sha256: 235a00ec37d2ca70a2021c04b35ff675007d278f665f098f600aebeabac77bdf
Contents?: true
Size: 685 Bytes
Versions: 1
Compression:
Stored size: 685 Bytes
Contents
# encoding: UTF-8 require File.expand_path("test_helper", File.dirname(__FILE__)) class ActionViewTest < ActionController::TestCase tests TestController test "rendering .rb files" do get :index, :name => "John" assert_equal "<html><head></head><body>Hello John!</body></html>", response.body end test "escaping html characters" do get :index, :name => "<script>unsafe</script>" assert_equal "<html><head></head><body>Hello <script>unsafe</script>!</body></html>", response.body end test "capturing content" do get :capture, :name => "John" assert_equal "<html><head></head><body>Hello John!</body></html>", response.body end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jrb-0.1.1 | test/action_view_test.rb |