[rspec-users] DB-less rspec_on_rails

aslak hellesoy aslak.hellesoy at gmail.com
Wed Dec 27 17:51:02 EST 2006


How do I reproduce this erratic behaviour? Detailed steps please.

On 12/27/06, Tobias Grimm <listaccount at e-tobi.net> wrote:
> 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
>
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
>


More information about the rspec-users mailing list