[rspec-users] Recognising RSpec files in the Textmate bundle

Elliot Winkler elliot.winkler at gmail.com
Sun Aug 8 23:45:00 EDT 2010

On Sun, Aug 8, 2010 at 3:53 PM, Phillip Koebbe <phillipkoebbe at gmail.com>wrote:

> Here's another idea that's not so great, but maybe it will spur some
> thinking in someone else. What about a custom generator (or a flag on the
> official one) that added something like a shebang line at the beginning of
> example files. A short comment that identifies the file, like "# RSpec".
> Then a TM bundle could pick up on that and be happy.

Putting aside the fact that this is solving a very specific problem.... what
about #!/usr/bin/env spec ? 99% of the time the shebang won't be used, I'd
wager, so it'd pretty much be harmless.

-- Elliot
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20100808/86d520ef/attachment.html>

More information about the rspec-users mailing list