Re: [rspec-users] rake spec loads development environment

2011-03-21 Thread Jared M.
This thread has been dead for awhile, but I'm having the same issue. I don't have a bash variable set. I'm also having this issue with Cucumber. It always runs in development mode. If I put "p Rails.env" in spec_helper.rb:8 (after spec_helper already declares ENV["RAILS_ENV"] ||= "test") and

Re: [rspec-users] rake spec loads development environment

2010-11-12 Thread Seung ho C.
Mark Wilden wrote in post #816031: > On Tue, Aug 19, 2008 at 2:35 PM, Jonathan Linowes > wrote: > >> >>rake spec RAILS_ENV=production >> >> that way the db:test:prepare uses the production db rather than the >> development one > > > I know this thread is long dead but ... you must be joking. >

Re: [rspec-users] rake spec loads development environment

2009-05-13 Thread Mark Wilden
On Tue, Aug 19, 2008 at 2:35 PM, Jonathan Linowes wrote: > >rake spec RAILS_ENV=production > > that way the db:test:prepare uses the production db rather than the > development one I know this thread is long dead but ... you must be joking. ///ark ___

Re: [rspec-users] rake spec loads development environment

2009-05-13 Thread David Chelimsky
On Wed, May 13, 2009 at 9:59 PM, Matthew Isleb wrote: > I know this thread is long dead, but I'm finding that I have the same > problem. 'rake spec:modles' loads the development environment and > clobbers my development database. I have to run set RAILS_ENV=test in > order for the tests to run cor

Re: [rspec-users] rake spec loads development environment

2009-05-13 Thread Matthew Isleb
I know this thread is long dead, but I'm finding that I have the same problem. 'rake spec:modles' loads the development environment and clobbers my development database. I have to run set RAILS_ENV=test in order for the tests to run correctly. Commenting out that rake task line does not solve t

Re: [rspec-users] rake spec loads development environment

2008-08-19 Thread Jonathan Linowes
On Aug 19, 2008, at 5:08 PM, Jonathan Linowes wrote: On Aug 19, 2008, at 4:32 PM, Satish Gunnu wrote: Yes I think that is what's happening in my case. is this how it is supposed to work? or can we have rspec ignore the step to look at development environment. thanks so much for all your help

Re: [rspec-users] rake spec loads development environment

2008-08-19 Thread David Chelimsky
Done On Tue, Aug 19, 2008 at 4:09 PM, Mark Wilden <[EMAIL PROTECTED]> wrote: >> http://rspec.rubyforge.org/documentation/rails/install.html > > > I sure wish someone would take that page down - it's caused me more than my > share of grief. > > ///ark > > ___

Re: [rspec-users] rake spec loads development environment

2008-08-19 Thread Satish Gunnu
Awesome. Thanks guys. Appreciate your help. Mark Wilden wrote: > On Tue, Aug 19, 2008 at 2:08 PM, Jonathan Linowes > <[EMAIL PROTECTED]>wrote: > >> >> you'll notice that vendor/plugins/rspec-rails/rspec.rake contains the line >> >> spec_prereq = File.exist?(File.join(RAILS_ROOT, 'config', 'datab

Re: [rspec-users] rake spec loads development environment

2008-08-19 Thread Mark Wilden
> > http://rspec.rubyforge.org/documentation/rails/install.html > I sure wish someone would take that page down - it's caused me more than my share of grief. ///ark ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/lis

Re: [rspec-users] rake spec loads development environment

2008-08-19 Thread David Chelimsky
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) Install

Re: [rspec-users] rake spec loads development environment

2008-08-19 Thread Mark Wilden
On Tue, Aug 19, 2008 at 2:08 PM, Jonathan Linowes <[EMAIL PROTECTED]>wrote: > > you'll notice that vendor/plugins/rspec-rails/rspec.rake contains the line > > spec_prereq = File.exist?(File.join(RAILS_ROOT, 'config', 'database.yml')) > ? "db:test:prepare" : :noop > > which you could change or comm

Re: [rspec-users] rake spec loads development environment

2008-08-19 Thread Jonathan Linowes
On Aug 19, 2008, at 4:32 PM, Satish Gunnu wrote: Yes I think that is what's happening in my case. is this how it is supposed to work? or can we have rspec ignore the step to look at development environment. thanks so much for all your help. you'll notice that vendor/plugins/rspec-rails/rspec.

Re: [rspec-users] rake spec loads development environment

2008-08-19 Thread Satish Gunnu
Yes I think that is what's happening in my case. is this how it is supposed to work? or can we have rspec ignore the step to look at development environment. thanks so much for all your help. > iirc, it looks at the development environment to prepare the db > schema, but still runs the specs in

Re: [rspec-users] rake spec loads development environment

2008-08-19 Thread Jonathan Linowes
On Aug 19, 2008, at 2:05 PM, Satish Gunnu wrote: Hi, I am new to rspec and started implementing it on my project yesterday. I have followed the instructions and installed rspec gem and rspec plugin into my project. I created couple of sample stories and tried running the specs using spec

Re: [rspec-users] rake spec loads development environment

2008-08-19 Thread Satish Gunnu
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

Re: [rspec-users] rake spec loads development environment

2008-08-19 Thread David Chelimsky
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 storie

[rspec-users] rake spec loads development environment

2008-08-19 Thread Satish Gunnu
Hi, I am new to rspec and started implementing it on my project yesterday. I have followed the 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