jwhitley/requirejs-rails — Issue #15: Automated testing of production behavior
Author: jwhitley
Created: 2011-12-16 19:17:16+00:00
State: open

A significant portion of correct behavior of this gem is only exhibited in a production deployment; the development and test environments don't have any coverage here. Important questions include:

- Does the r.js build process work correctly?
- Does the helper work in production mode?
- Does the helper use digest-fingerprinted asset names?

and so forth. To date, this sort of testing has been handled by ad-hoc testing on a production-mode dummy Rails app.

This issue covers the following:

- Creation of a `testprod` environment whose settings trigger the use of digest-signed optimized assets, identical to a production deployment.
- A `rake test:prod` task that utilizes this environment and which performs an asset build.
- Tests and/or test suites tailored towards running in this environment.