I had the same thought, but there is no ambiguity at all with the test verifying that the code is Ruby -- completely unrelated to Java.

That said, i'd still feel comfortable with one more line:

```c
+  ASSERT_DETECT(LANG_RUBY, "java_emac.js");
```

With a small JS test file.  Only because then you know it really addresses the issue you meant to fix