That's perfect. Once it gives a relative path, we would just remove this regex replace and add the source map URL to the expected file like you said before.

And the test case setting would be great! It would be like running Ruby's mongrel / thin server in test environment. :-)