aboutsummaryrefslogblamecommitdiffstats
path: root/actionpack/test/template/javascript_helper.rb
blob: 39f02e90bfa3d12ec6c3eec6db3d2debf53ca94f (plain) (tree)
1
2
3
4
5
6
7
8
9








                                                                                                                 
require File.dirname(__FILE__) + '/../abstract_unit'

class JavascriptHelperTest < Test::Unit::TestCase
  include ActionView::Helpers::JavascriptHelper

  def test_escape_javascript
    assert_equal %(This \\"thing\\" is really\\n netos\\'), escape_javascript(%(This "thing" is really\n netos'))
  end
end