Bugs: Browse | Submit New | Admin

[#20770] Can't get specs to run for desert-based plugin

Date:
2008-06-21 19:07
Priority:
3
Submitted By:
Jeff Dean (zilkey)
Assigned To:
Nobody (None)
Category:
None
State:
Closed
Summary:
Can't get specs to run for desert-based plugin

Detailed description
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>

Add A Comment: Notepad

Please login


Followup

Message
Date: 2008-12-09 00:56
Sender: Brian Takita

Moved spectest.rake into lib/desert/tasks/spectest.rake

To fix this, require 'desert/tasks'

Attached Files:

Name Description Download
No Files Currently Attached

Changes:

Field Old Value Date By
status_idOpen2008-12-09 00:56btakita
close_date2008-12-09 00:562008-12-09 00:56btakita