searls/jasmine-rails — pull request #143 by werkshy (2014-08-21 12:14:06+00:00)
Title: Protect against nil source in offline_asset_paths

The monkey-patched offline asset path stuff was receiving a nil 'source' argument in our app and crashing before writing the assets and runner.html. It seems prudent to just ignore these. (This PR fixes the problem for us).

FWIW the line in our code that seemed to be triggering this was this:

"#{ActionController::Base.asset_host}#{ActionController::Base.helpers.asset_path(self.checkout_image)}",

I think in this case self.checkout_image is nil.