diff options
author | Michael Koziarski <michael@koziarski.com> | 2008-06-30 18:46:53 +0300 |
---|---|---|
committer | Michael Koziarski <michael@koziarski.com> | 2008-07-03 19:21:04 +0300 |
commit | e358b1fce8fdcbac896dde08286be020420e843e (patch) | |
tree | 0bc8c93d7503e3e93d8c979d5b4b4fe70ce9617e /actionpack/test | |
parent | 5501166dec84e1dd63800ea25eaf23290216cf80 (diff) | |
download | rails-e358b1fce8fdcbac896dde08286be020420e843e.tar.gz rails-e358b1fce8fdcbac896dde08286be020420e843e.tar.bz2 rails-e358b1fce8fdcbac896dde08286be020420e843e.zip |
Remove old method of including javascripts define_javascript_functions.
javascript_include_tag and friends do a much better job.
Diffstat (limited to 'actionpack/test')
-rw-r--r-- | actionpack/test/template/javascript_helper_test.rb | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/actionpack/test/template/javascript_helper_test.rb b/actionpack/test/template/javascript_helper_test.rb index d6d398d224..b2c4a130c8 100644 --- a/actionpack/test/template/javascript_helper_test.rb +++ b/actionpack/test/template/javascript_helper_test.rb @@ -3,14 +3,6 @@ require 'abstract_unit' class JavaScriptHelperTest < ActionView::TestCase tests ActionView::Helpers::JavaScriptHelper - def test_define_javascript_functions - # check if prototype.js is included first - assert_not_nil define_javascript_functions.split("\n")[1].match(/Prototype JavaScript framework/) - - # check that scriptaculous.js is not in here, only needed if loaded remotely - assert_nil define_javascript_functions.split("\n")[1].match(/var Scriptaculous = \{/) - end - def test_escape_javascript assert_equal '', escape_javascript(nil) assert_equal %(This \\"thing\\" is really\\n netos\\'), escape_javascript(%(This "thing" is really\n netos')) |