I’m getting the same error, but only when I use prototype as the default javascript library instead of jquery. When I use jquery, I don’t get an error.
This looks like it’s related to some strange behavior when loading ActionView::TestCase in a non-test environment. You may want to report the issue on the prototype-rails issue tracker or comment on some of the existing issues: