On Tue, Aug 19, 2008 at 3:08 PM, Satish Gunnu <[EMAIL PROTECTED]> wrote: > Hi David, > > Most of my knowledge came from peepcode rspec screencast and the > following link. > http://rspec.rubyforge.org/documentation/rails/install.html > > Here are the steps I have done to get going. > > 1) Installed rspec gem > 2) Installed rspec plugin in my project > 3) created a test_spec.rb file which have sample stories > 4) ruby script/generate rspec > 5) rake spec > > I have one initializer file for oracle_driver in initializers > directory which is set to not load in test environment. when I run rake > spec command this initializer is invoked and I see that the environment > is set to development but not test. > > To answer your second questions, I am not including it from my spec > files.
I'd recommend doing so if you want the spec_helper.rb file to be loaded. It will set the environment for you correctly. > > BTW I am using rpsec 1.1.4 and rails 2.1.0. Sorry for not being > elaborate in my prev post. > > Thanks, > SatishG. > > > > > > David Chelimsky wrote: >> On Aug 19, 2008, at 1:05 PM, Satish Gunnu <[EMAIL PROTECTED]> wrote: >> >>> Hi, >>> >>> I am new to rspec and started implementing it on my project >>> yesterday. >>> I have followed the instructions >> >> What instructions? >> >>> and installed rspec gem and rspec >>> plugin into my project. I created couple of sample stories and tried >>> running the specs using spec command which worked fine, but when I >>> started using rake spec command it is loading development environment >>> instead of test environment. I tried to putting some STDOUT's in >>> spec_helper.rb but it seems that this file is never interpreted. >> >> Are you including it from your spec files? > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > rspec-users mailing list > rspec-users@rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users > _______________________________________________ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users