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

2010-08-10 Thread Ashley Moran
On 9 Aug 2010, at 17:37, Rick DeNatale wrote: Well, I'd still use a different file name suffix which I could set textmate to recognize as a spec _sspec.rb or _sgroup.rb something like that. Hi Rick, I think that was what David was saying? (If I understood you both correctly, that

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

2010-08-10 Thread Ashley Moran
On 8 Aug 2010, at 21:53, Phillip Koebbe wrote: I don't think you are alone in your quest to achieve greater organization. I am guessing that in your suggested RSpec folder structure, the current folders of controllers|helpers|models|views would all live under examples? I might go for

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

2010-08-10 Thread Rick DeNatale
On Tue, Aug 10, 2010 at 9:40 AM, Ashley Moran ashley.mo...@patchspace.co.uk wrote: On 9 Aug 2010, at 17:37, Rick DeNatale wrote: Well, I'd still use a different file name suffix which I could set textmate to recognize as a spec _sspec.rb or _sgroup.rb something like that. Hi Rick, I

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

2010-08-10 Thread Ashley Moran
On 10 Aug 2010, at 15:03, Rick DeNatale wrote: And easy to add yourself by just editing the bundle. I've tried this before. Unfortunately, it just leads to pain when you try to update the bundle via Git Or... how about an actual dot-suffix, .rspec, eg, active_record_associations.rspec,

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

2010-08-09 Thread Rick DeNatale
On Sun, Aug 8, 2010 at 11:45 PM, Elliot Winkler elliot.wink...@gmail.com wrote: On Sun, Aug 8, 2010 at 3:53 PM, Phillip Koebbe phillipkoe...@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

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

2010-08-09 Thread David Chelimsky
On Aug 9, 2010, at 9:56 AM, Rick DeNatale wrote: On Sun, Aug 8, 2010 at 11:45 PM, Elliot Winkler elliot.wink...@gmail.com wrote: On Sun, Aug 8, 2010 at 3:53 PM, Phillip Koebbe phillipkoe...@gmail.com wrote: Here's another idea that's not so great, but maybe it will spur some thinking in

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

2010-08-09 Thread Rick DeNatale
On Mon, Aug 9, 2010 at 11:23 AM, David Chelimsky dchelim...@gmail.com wrote: On Aug 9, 2010, at 9:56 AM, Rick DeNatale wrote: On Sun, Aug 8, 2010 at 11:45 PM, Elliot Winkler elliot.wink...@gmail.com wrote: On Sun, Aug 8, 2010 at 3:53 PM, Phillip Koebbe phillipkoe...@gmail.com wrote:

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

2010-08-08 Thread Ashley Moran
On Aug 08, 2010, at 2:17 am, Phillip Koebbe wrote: I have developed a system in which I require model_helper.rb in model specs, controller_helper.rb in controllers, and (you guessed it!) view_helper.rb in view specs. Each of those then require spec_helper.rb. I did this because I wanted

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

2010-08-08 Thread Rick DeNatale
On Sun, Aug 8, 2010 at 7:11 AM, Ashley Moran ashley.mo...@patchspace.co.uk wrote: I just double checked, and spec_helper.rb isn't considered an RSpec file - and actually, I don't think it should be.  Also, I have a spec/support folder in most projects, with matchers etc.  They aren't RSpec

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

2010-08-08 Thread Phillip Koebbe
On 2010-08-08 6:11 AM, Ashley Moran wrote: On Aug 08, 2010, at 2:17 am, Phillip Koebbe wrote: I have developed a system in which I require model_helper.rb in model specs, controller_helper.rb in controllers, and (you guessed it!) view_helper.rb in view specs. Each of those then require

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

2010-08-08 Thread Elliot Winkler
On Sun, Aug 8, 2010 at 3:53 PM, Phillip Koebbe phillipkoe...@gmail.comwrote: 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

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

2010-08-07 Thread Ashley Moran
Hi Did the RSpec TMBundle ever have multiple ways of recognising RSpec files? I'm convinced it user to look for spec_helper on the first line. The Ruby bundle does something similar, as it looks for firstLineMatch = '^#!/.*\bruby'; The reason I ask is because I now have several files that

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

2010-08-07 Thread David Chelimsky
On Aug 7, 2010, at 5:28 PM, Ashley Moran wrote: Hi Did the RSpec TMBundle ever have multiple ways of recognising RSpec files? I'm convinced it user to look for spec_helper on the first line. I'm pretty sure it never did that. The Ruby bundle does something similar, as it looks for

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

2010-08-07 Thread Phillip Koebbe
On 2010-08-07 5:44 PM, David Chelimsky wrote: On Aug 7, 2010, at 5:28 PM, Ashley Moran wrote: Hi Did the RSpec TMBundle ever have multiple ways of recognising RSpec files? I'm convinced it user to look for spec_helper on the first line. I'm pretty sure it never did that. The Ruby bundle