0

I am starting my first ruby on rails project using RSpec and BDD. When I try to run my rake spec task, I get the following error:

Access denied for user 'root'@'localhost' (using password: NO)

Clearly rspec is trying to use a default configuration from somewhere and is ignoring the database.yml file in my rails config directory. How do I fix thi?

1
  • I don't usual call the rake task. Instead I do 'rspec spec' from the application root directory. Does your app work properly in the browser and have you done 'rake db:test:prepare' to setup the test database? Commented Nov 15, 2010 at 4:41

1 Answer 1

1

It seems I had changed the default configuration for my development and production environments, but had forgotten to change the configuration details for the test environment.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.