hey guys, I''m having a problem here, I have a pc in my house that I use as a db server (postgresql). I have the pr-postgresql gem running and it works very well But when I try to "rake spec" I get these 2 errors C:/ruby/bin/rake: No such file or directory - dropdb -U "coleira" coleira_test C:/ruby/bin/rake: No such file or directory - createdb -E unicode -U "coleira" coleira_test after doing a "rake spec --trace" I found out that this is happening at the rake db:test:purge task, so I''m gessing that it is trying to run "pgsql" from my machine. I tested migrating the database and it all went fine. Is it not possible to use RSpec with a remote db? Any help will be fine, thanks in advance =) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On Jan 11, 2008 11:27 AM, Rafael Barbosa <rbocosta-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > hey guys, > I''m having a problem here, I have a pc in my house that I use as a db > server (postgresql). > I have the pr-postgresql gem running and it works very well > But when I try to "rake spec" I get these 2 errors > > C:/ruby/bin/rake: No such file or directory - dropdb -U "coleira" > coleira_test > C:/ruby/bin/rake: No such file or directory - createdb -E unicode -U > "coleira" coleira_test > > after doing a "rake spec --trace" I found out that this is happening > at the rake db:test:purge task, so I''m gessing that it is trying to > run "pgsql" from my machine. I tested migrating the database and it > all went fine. > > Is it not possible to use RSpec with a remote db?RSpec just wraps Rails testing in terms of interaction w/ databases, so this is really a rails testing question. One which I can''t answer for you, but hopefully someone else on this list can.> Any help will be fine, thanks in advance =) > > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On Jan 11, 2008 2:46 PM, David Chelimsky <dchelimsky-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > On Jan 11, 2008 11:27 AM, Rafael Barbosa <rbocosta-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > hey guys, > > I''m having a problem here, I have a pc in my house that I use as a db > > server (postgresql). > > I have the pr-postgresql gem running and it works very well > > But when I try to "rake spec" I get these 2 errors > > > > C:/ruby/bin/rake: No such file or directory - dropdb -U "coleira" > > coleira_test > > C:/ruby/bin/rake: No such file or directory - createdb -E unicode -U > > "coleira" coleira_test > > > > after doing a "rake spec --trace" I found out that this is happening > > at the rake db:test:purge task, so I''m gessing that it is trying to > > run "pgsql" from my machine. I tested migrating the database and it > > all went fine. > > > > Is it not possible to use RSpec with a remote db? > > RSpec just wraps Rails testing in terms of interaction w/ databases, > so this is really a rails testing question. One which I can''t answer > for you, but hopefully someone else on this list can.Yeah, the problem is that Rails goes through the command-line client for dropping and creating with a db. You just need to add it to your path. Pat --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---