Sha256: 72e0ae30cdfab5dfb56d9d2140fbfbbf13ae058ad000a576a3e86fcf4c865072
Contents?: true
Size: 527 Bytes
Versions: 1
Compression:
Stored size: 527 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 end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jrb-0.1.0 | test/action_view_test.rb |