I can't figure out how to run specs for my desert-based plugin. I installed 0.3.1 from github and I have an app with
a desert plugin. In that app, when I run rake -T I don't see any tasks in the desert namespace, so I can't run specs
in the plugin.
I run both rspec and rspec-rails from github, and I have them installed as plugins. rspec is not installed as a gem
on my machine.
When I copy tasks/testspec.rake to my own lib directory, it fails with:
<pre>
uninitialized constant Spec
/opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:278:in `load_missing_constant'
/opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:467:in `const_missing'
/opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:479:in `const_missing'
/Users/jeff/Sites/youthline/desert/youthline/lib/tasks/testspec.rake:9
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1737:in `in_namespace'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:821:in `namespace'
/Users/jeff/Sites/youthline/desert/youthline/lib/tasks/testspec.rake:2
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1737:in `in_namespace'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:821:in `namespace'
/Users/jeff/Sites/youthline/desert/youthline/lib/tasks/testspec.rake:1
/opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:502:in `load'
/opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:502:in `load'
/opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:354:in `new_constants_in'
/opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:502:in `load'
/opt/local/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/tasks/rails.rb:7
/opt/local/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/tasks/rails.rb:7:in `each'
/opt/local/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/tasks/rails.rb:7
/opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
/opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
/Users/jeff/Sites/youthline/desert/youthline/rakefile:10
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:2149:in `load'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:2149:in `raw_load_rakefile'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1897:in `load_rakefile'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1948:in `standard_exception_handling'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1896:in `load_rakefile'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1880:in `run'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1948:in `standard_exception_handling'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1878:in `run'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/bin/rake:31
/opt/local/bin/rake:19:in `load'
/opt/local/bin/rake:19
</pre>
|