3fe9d8ac35
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1002 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
10 lines
306 B
Ruby
10 lines
306 B
Ruby
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
|