Hi, I''m new to rspec and wanted to translate some of my unit tests into rspecs. Unfortunately my first test fails with "Mysql not loaded". My application is running fine and can access the database. I''d appreciate any help, so I can get started. Tino -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/rspec-users/attachments/20070427/c831c3af/attachment.html
Did you define a specific test database in ''config/database.yml'' ? On 4/27/07, Tino Breddin <tino.breddin at googlemail.com> wrote:> Hi, > > I''m new to rspec and wanted to translate some of my unit tests into rspecs. > Unfortunately my first test fails with "Mysql not loaded". My application is > running fine and can access the database. > > I''d appreciate any help, so I can get started. > > Tino > > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >
Yes, the unit tests run fine with the test database. On 4/27/07, Matthijs Langenberg <mlangenberg at gmail.com> wrote:> > Did you define a specific test database in ''config/database.yml'' ? > > On 4/27/07, Tino Breddin <tino.breddin at googlemail.com> wrote: > > Hi, > > > > I''m new to rspec and wanted to translate some of my unit tests into > rspecs. > > Unfortunately my first test fails with "Mysql not loaded". My > application is > > running fine and can access the database. > > > > I''d appreciate any help, so I can get started. > > > > Tino > > > > _______________________________________________ > > rspec-users mailing list > > rspec-users at rubyforge.org > > http://rubyforge.org/mailman/listinfo/rspec-users > > > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/rspec-users/attachments/20070427/20af00d6/attachment.html
On 4/27/07, Tino Breddin <tino.breddin at googlemail.com> wrote:> Hi, > > I''m new to rspec and wanted to translate some of my unit tests into rspecs. > Unfortunately my first test fails with "Mysql not loaded". My application is > running fine and can access the database. > > I''d appreciate any help, so I can get started.What command are you typing? What''s the full error? What versions of rspec and rails are you using?> > Tino > > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >