Add creation of proper test file name if file does not end with .rb

View files mostly have a different extension than `.rb` - they end with `.erb`, `.haml` etc. The current code just returns the same name.

With this patch, when creating a spec/test file, you get a proper name suggestion instead of the same name as the view has.