Re: [rspec-users] Newbie question, populate or ignore test db

2008-07-21 Thread Teedub
Thanks rake db:test:prepare did the trick. I am still a bit confused as to why rake cares about a database that it isn't using. But I guess that will all fall into place in my brain one day. Teedub On Jul 21, 1:01 am, Rahoul Baruah <[EMAIL PROTECTED]> wrote: > On 21 Jul 2008, at 08:27, David Sal

Re: [rspec-users] Failing on rake but not on textmate (rails)

2008-07-21 Thread Mark Wilden
On Mon, Jul 21, 2008 at 4:33 PM, Macario Ortega <[EMAIL PROTECTED]> wrote: > > I have a spec for a model that passes all tests if I run it using > textmate but I run rake some of the otherwise passed tests fail. > AFAIK, the main difference is that rake copies the development db structure to the

[rspec-users] Failing on rake but not on textmate (rails)

2008-07-21 Thread Macario Ortega
I have a spec for a model that passes all tests if I run it using textmate but I run rake some of the otherwise passed tests fail. I would like to use autotest but I can't trust the results. Any ideas? -- Posted via http://www.ruby-forum.com/. ___ rs

Re: [rspec-users] Specifying a few valid values

2008-07-21 Thread Bart Zonneveld
On 18-jul-2008, at 1:22, David Chelimsky wrote: On Thu, Jul 17, 2008 at 11:04 AM, Jonathan Leighton <[EMAIL PROTECTED]> wrote: On Thu, 2008-07-17 at 09:40 -0500, David Chelimsky wrote: On Thu, Jul 17, 2008 at 9:37 AM, Zach Dennis <[EMAIL PROTECTED]> wrote: Perhaps... When "I login with in

Re: [rspec-users] Specing a rails monkey patch

2008-07-21 Thread Keith McDonnell
Hi Mikel, Thanks for the feedback. Much appreciated. >I'm using cursors to walk a table with close to a million rows at times. > >I am just wrapping the action in a transaction and then declaring the >cursor within the transaction and then walking the table with a >find_by_sql with an SQL fetch

Re: [rspec-users] Newbie question, populate or ignore test db

2008-07-21 Thread Rahoul Baruah
On 21 Jul 2008, at 08:27, David Salgado wrote: If you have created it, then perhaps the test db doesn't have the right tables. So, try "rake db:test:prepare". You'll need to do that after every migration as well. Once your test database is built, using "rake spec" should ensure that your

Re: [rspec-users] Newbie question, populate or ignore test db

2008-07-21 Thread David Salgado
Have you created the database "myspec_test"? If not, try running "rake db:create:all". If you have created it, then perhaps the test db doesn't have the right tables. So, try "rake db:test:prepare". You'll need to do that after every migration as well. HTH David 2008/7/21 Teedub <[EMAIL PROTE