I'm on rails 3.2.8 and having a strange issue with rake.

When I do    $ bundle exec rake db:test:prepare   my postgres 9.1.3 server 
complains:
FATAL: database "rghb_test" does not exist

In addition, when I do    $bundle exec rake db:reset    my postgres server 
says:
FATAL: database "rhgb_development" does not exist
FATAL: database "rhgb_test" does not exist

Someone suggested I try "bundle exec rake db:drop:all" then "bundle exec 
rake db:create:all".
The "bundle exec rake db:drop:all" doesn't cause my server to complain, but 
I get the same dual FATAL message when I do   "bundle exec rake 
db:create:all"  as the above "bundle exec rake db:reset"   ( _development 
and _test does not exist), then the same singe FATAL message as above when 
I do "bundle exec rake db:test:prepare." (The server does not complain for  
"bundle exec rake db:migrate" or "bundle exec rake db:populate").

When I check my pg database:
$  rails db
=#  \l
it shows the _development and _test dbs are there (and they do populate 
when I run "bundle exec rake db:populate").

I have no idea what else I can do to fix/troubleshoot. 
Wondering if it's tied to something I did a while back when running a test. 
Being new, I wanted to place a long test command on two lines. I started my 
command with:
$ bundle exec rspec spec/requests/user_pages_spec.rb  /

I had accidentally used    /   instead of    \   and when I hit enter to 
continue my command I suddenly found myself in 'no man's land' with no 
command prompt of any kind. I couldn't get out of it --tried Cntrl+c, 
Cntrol+d, q, exit-- nothing worked. So I just shut the window and went back 
in. Would this have caused some issue? What would  /  do (instead of  \ )?  
Otherwise, I have no idea why this could be happening...

Cat


-- 
You received this message because you are subscribed to the Google Groups 
"rspec" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msg/rspec/-/qFbbfpRDXu8J.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to