[rspec-users] how to place the app in the rails dir

2010-08-10 Thread Aruna Chinnamuthu
Hi i am new to ROR . I have mentioned to work on Rspec.. i have a code given by my boss.. I am having doubts in using them. 1. How should i keep that code in my railsprojects directory.. Should i keep the package given by them directly in my directory or i have to use rails appname 2.I actually tri

[rspec-users] Cant able to create a Rspec files

2010-08-10 Thread Aruna Chinnamuthu
Hi, I am new to ROR. I am working on Rspec.. I have been provided with a full package of an application. I kept it in my rails dir. The dir itself contains spec folder with some controllers/models and fixtures but without spec_helper file. So when i run $spec spec/ i got an error /usr

Re: [rspec-users] Cant able to create a Rspec files

2010-08-10 Thread David Chelimsky
On Aug 10, 2010, at 6:27 AM, Aruna Chinnamuthu wrote: > Hi, > > I am new to ROR. I am working on Rspec.. > I have been provided with a full package of an application. > I kept it in my rails dir. > The dir itself contains spec folder with some controllers/models and > fixtures but without spec_

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, tha

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 t

Re: [rspec-users] Order guarantees of let

2010-08-10 Thread Ashley Moran
On 9 Aug 2010, at 13:49, David Chelimsky wrote: > Yes, eval'd in order. No, not explicitly stated, but I think it should be. > Want to submit a patch with a spec for this? Sure - I've made an action to write a spec for this. I guess the implementation is not likely to change any time soon so

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 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 think that w

Re: [rspec-users] Order guarantees of let

2010-08-10 Thread Rick DeNatale
On Mon, Aug 9, 2010 at 11:21 AM, David Chelimsky wrote: >> First of all, what's let! as opposed to let, I can't seem to find it >> via google or the latest draft of the book. > > http://rdoc.info/projects/rspec/rspec-core - search for let and let! > >> >> Second, unless let! is a new method which

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.

Re: [rspec-users] Order guarantees of let

2010-08-10 Thread David Chelimsky
On Aug 10, 2010, at 9:08 AM, Rick DeNatale wrote: > On Mon, Aug 9, 2010 at 11:21 AM, David Chelimsky wrote: >>> First of all, what's let! as opposed to let, I can't seem to find it >>> via google or the latest draft of the book. >> >> http://rdoc.info/projects/rspec/rspec-core - search for let an

[rspec-users] Nice little DSL trick for extending ExampleGroups in RSpec

2010-08-10 Thread Kristian Mandrup
describe 'migration_generator' do include RSpec::Rails::Orm::ActiveRecord include RSpec::Rails::Migration ... end Didn't quite feel right. So I made it prettier DSL like using the solution below ;) class Class def use_orm orm class_eval do include "RSpec::Rails::Orm::#{orm.to_s.c

[rspec-users] Autotest does not start

2010-08-10 Thread Don French
I have a non rails app using rspec2. I created the autotest/ discover.rb and put in it Autotest.add_discovery {"rspec2"}. When I run under bundler I get - loading autotest/rspec2 and a prompt back When standalone I get: loading autotest/rspec2 style: Rspec2 and a prompt. Any ideasas to the pr

[rspec-users] Rspec2, Autotest showing failure on all passing specs

2010-08-10 Thread Pixel
Hey guys, This is making me nuts, and I've run out of things to google. I'm writing myself a little gem library, primarily for my own education.  I got a healthy start on my specs and figured I could do myself a favor and get the specs running under autotest.  It's not working quite like I expected

Re: [rspec-users] Rspec2, Autotest showing failure on all passing specs

2010-08-10 Thread David Chelimsky
On Aug 10, 2010, at 10:45 PM, Pixel wrote: > Hey guys, > This is making me nuts, and I've run out of things to google. > I'm writing myself a little gem library, primarily for my own > education. I got a healthy start on my specs and figured I could do > myself a favor and get the specs running u