Hi, I have installed the acts_as_authenticated plugin from technoweenie, but when I run the tests I get an error (running windoze) -- create_table(:attachments, {:force=>true}) c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require__'': no such file to load -- sqlite (MissingSourceFile) I found the require statement in test/abstract_unit.rb ActiveRecord::Base.establish_connection(config[ENV[''DB''] || ''sqlite'']) I have used console to check ENV and there is no DB in it... My database is mysql and works in my app. Anyone know what I need to do to run the tests? Cheers -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060611/a8b49a9a/attachment.html
On 6/10/06, Daniel N <has.sox@gmail.com> wrote:> Hi, > > I have installed the acts_as_authenticated plugin from technoweenie, but > when I run the tests I get an error (running windoze) > > -- create_table(:attachments, {:force=>true}) > c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in > `require__'': no > such file to load -- sqlite (MissingSourceFile) > > I found the require statement in test/abstract_unit.rb > > ActiveRecord::Base.establish_connection(config[ENV[''DB''] || ''sqlite'']) > > I have used console to check ENV and there is no DB in it... My database is > mysql and works in my app. > > Anyone know what I need to do to run the tests? > > Cheersrake test_plugins PLUGIN=acts_as_attachment DB=mysql -- Rick Olson http://techno-weenie.net
Thanx Rick, That got past the DB issue but it raises a method missing error on validates_as_attachment On 6/12/06, Rick Olson <technoweenie@gmail.com> wrote:> > On 6/10/06, Daniel N <has.sox@gmail.com> wrote: > > Hi, > > > > I have installed the acts_as_authenticated plugin from technoweenie, but > > when I run the tests I get an error (running windoze) > > > > -- create_table(:attachments, {:force=>true}) > > c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in > > `require__'': no > > such file to load -- sqlite (MissingSourceFile) > > > > I found the require statement in test/abstract_unit.rb > > > > ActiveRecord::Base.establish_connection(config[ENV[''DB''] || ''sqlite'']) > > > > I have used console to check ENV and there is no DB in it... My > database is > > mysql and works in my app. > > > > Anyone know what I need to do to run the tests? > > > > Cheers > > rake test_plugins PLUGIN=acts_as_attachment DB=mysql > > > -- > Rick Olson > http://techno-weenie.net > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060612/c157344b/attachment.html