```ruby
assert_dom_equal "<script src='/foo.bar'></script>", javascript_include_tag('/foo', extname: '.bar')