Items 1-12 out of 299 displayed
The answer is really about dependency injection.
You want to test that WidgetManager
is interacting with a dependency (Widget
) in the expected way -...
If you're replacing the contents of the div and have the HTML as a string you can use the following:
document.getElementById('mydiv').innerHTML = '<span...
You can put any Javascript files that you want to load manually in the public/javascripts/lib
directory of your application, and they will not be included in the assets pipeline....