Open julien-duponchelle opened 11 years ago
I think this is just a problem with the mongoid configuration. In the installation script, the config is created with:
cp config/mongoid/development.yml config/mongoid.yml
and only contains a development
part. But rspec needs, if I remember well, a test
.
You can add lines by hand, or create a more complete configuration using the following task:
bundle exec rails g mongoid:config
Hope this can help.
Yes perfect. I open a pull request to fix that #26.
Now i got this error:
/vagrant/lib/tea_api.rb:24:in `<top (required)>': TeaApi is not a class (TypeError)
from /home/vagrant/gem/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:251:in `require'
from /home/vagrant/gem/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:251:in `block in require'
from /home/vagrant/gem/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:236:in `load_dependency'
from /home/vagrant/gem/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:251:in `require'
from /vagrant/spec/controllers/tea_api_controller_spec.rb:23:in `<top (required)>'
from /home/vagrant/gem/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:245:in `load'
from /home/vagrant/gem/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:245:in `block in load'
from /home/vagrant/gem/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:236:in `load_dependency'
from /home/vagrant/gem/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:245:in `load'
from /home/vagrant/gem/gems/rspec-core-2.10.1/lib/rspec/core/configuration.rb:746:in `block in load_spec_files'
from /home/vagrant/gem/gems/rspec-core-2.10.1/lib/rspec/core/configuration.rb:746:in `map'
from /home/vagrant/gem/gems/rspec-core-2.10.1/lib/rspec/core/configuration.rb:746:in `load_spec_files'
from /home/vagrant/gem/gems/rspec-core-2.10.1/lib/rspec/core/command_line.rb:22:in `run'
from /home/vagrant/gem/gems/rspec-core-2.10.1/lib/rspec/core/runner.rb:69:in `run'
from /home/vagrant/gem/gems/rspec-core-2.10.1/lib/rspec/core/runner.rb:10:in `block in autorun'
Hi,
I install TEA with Vagrant:
This work without problem, but rspec doesn't work: