[rspec-users] DB-less rspec_on_rails

Tobias Grimm listaccount at e-tobi.net
Wed Dec 27 13:41:54 EST 2006


Hi!

I'm still struggling with RSpec  to get it working with a Rails
application, that does not use a database. I removed all the db:*
dependencies from the RSpec targets, but it still wants to connect to a
database.

Any ideas?

bye,

Tobias

** Execute spec:models
/usr/bin/ruby1.8 -I"/var/lib/gems/1.8/gems/rspec-0.7.5/lib"
"/var/lib/gems/1.8/gems/rspec-0.7.5/bin/spec" "spec/models/person_spec.rb"

F

1)
Mysql::Error in 'This sample spec should work without a database'
#28000Access denied for user 'root'@'localhost' (using password: NO)


Finished in 0.026762 seconds

1 specification, 1 failure
rake aborted!
Command failed with status (1): [/usr/bin/ruby1.8
-I"/var/lib/gems/1.8/gems...]
/usr/lib/ruby/1.8/rake.rb:722:in `sh'
/usr/lib/ruby/1.8/rake.rb:729:in `call'
/usr/lib/ruby/1.8/rake.rb:729:in `sh'
/usr/lib/ruby/1.8/rake.rb:812:in `sh'
/usr/lib/ruby/1.8/rake.rb:747:in `ruby'
/usr/lib/ruby/1.8/rake.rb:812:in `ruby'
/var/lib/gems/1.8/gems/rspec-0.7.5/lib/spec/rake/spectask.rb:131:in `define'
/usr/lib/ruby/1.8/rake.rb:831:in `verbose'
/var/lib/gems/1.8/gems/rspec-0.7.5/lib/spec/rake/spectask.rb:110:in `define'
/usr/lib/ruby/1.8/rake.rb:387:in `call'
/usr/lib/ruby/1.8/rake.rb:387:in `execute'
/usr/lib/ruby/1.8/rake.rb:387:in `each'
/usr/lib/ruby/1.8/rake.rb:387:in `execute'
/usr/lib/ruby/1.8/rake.rb:357:in `invoke'
/usr/lib/ruby/1.8/thread.rb:135:in `synchronize'
/usr/lib/ruby/1.8/rake.rb:350:in `invoke'
/usr/lib/ruby/1.8/rake.rb:1906:in `run'
/usr/lib/ruby/1.8/rake.rb:1906:in `each'
/usr/lib/ruby/1.8/rake.rb:1906:in `run'
/usr/bin/rake:4



More information about the rspec-users mailing list