SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Hybrid View

  1. #1
    SitePoint Member
    Join Date
    May 2007
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    build your own rails app pg 171 prob - access denied

    when i try running the unit test with 'rake test:units' as suggested in the book (pg 171) I get a

    'access denied for user 'root'@localhost' <using password: NO>

    even though I have definately got the password in the database yml file, and this is verified by the fact i can add records using the form in the previous pages.

    any help would be greatly appreciated

  2. #2
    SitePoint Wizard samsm's Avatar
    Join Date
    Nov 2001
    Location
    Atlanta, GA, USA
    Posts
    5,011
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Have you set up the test environment as well as the development environment in database.yml?
    Using your unpaid time to add free content to SitePoint Pty Ltd's portfolio?

  3. #3
    SitePoint Member
    Join Date
    May 2007
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    aha! thanks samsm,

    It never occured to me that switched to the test environment. I need to pay more attention

    thanks


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •