Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #10697 (closed enhancement: fixed)

Opened 9 months ago

Last modified 9 months ago

[PATCH] javascript_test generator has option to use application's own prototype.js

Reported by: nicwilliams Assigned to: core
Priority: normal Milestone: 2.x
Component: Plugins Version: edge
Severity: normal Keywords: javascript_test
Cc: madrobby

Description

Currently, the generated foo_test.html test files use the assets/prototype.js library that comes with the javascript_test plugin. The plugin might have a different/older version of the library that the application's own version.

This patch gives the generator a -A/--use-app-assets option. When used, the generated test files use the app's own prototype.js:

  <script src="../../public/javascripts/prototype.js" type="text/javascript"></script>

Attachments

gen_alias_asset_option.patch (2.2 kB) - added by nicwilliams on 01/04/08 11:35:20.
gen_alias_asset_option.2.patch (2.2 kB) - added by nicwilliams on 01/04/08 11:35:27.

Change History

01/04/08 11:35:20 changed by nicwilliams

  • attachment gen_alias_asset_option.patch added.

01/04/08 11:35:27 changed by nicwilliams

  • attachment gen_alias_asset_option.2.patch added.

01/09/08 17:05:33 changed by madrobby

  • status changed from new to closed.
  • resolution set to fixed.

(In [8610]) javascript_test: update prototype/unittest.js to latest 1.6.0.1 versions, generate public/javascripts/name.js file when using the generator, add option to use application-provided prototype.js file instead of the one that comes with the pluging. Fixes #10662, #10667, #10669, #10694, #10697 and #10732.