Hi everyone, I started a thread about this a couple of weeks ago and
just now got back to trying to work on it. I still get a NameError
anytime I run rake test:extensions, even on a brand new instance with
no changes to the default radiant or extension code. Now, from what I
recall from the previous thread, whether or not I’m running Radiant in
instance mode or application mode shouldn’t matter – that’s true,
right?
Here’s what I get:
monkeydrome:~/WorkingDirectory aobrien$ radiant -v
Radiant 0.6.1
monkeydrome:~/WorkingDirectory aobrien$ radiant foo
create
create CHANGELOG
create CONTRIBUTORS
create INSTALL
create LICENSE
create README
create config
create config/environments
create config/environments/development.rb
create config/environments/production.rb
create config/environments/test.rb
create db
create log
create public
create public/.htaccess
create public/404.html
[snipped create files…]
monkeydrome:~/WorkingDirectory aobrien$ cd foo
[snipped rake db:bootstrap for all environments]
monkeydrome:~/WorkingDirectory/foo aobrien$ script/generate extension
Bar
create vendor/extensions/bar/app/controllers
create vendor/extensions/bar/app/helpers
create vendor/extensions/bar/app/models
create vendor/extensions/bar/app/views
create vendor/extensions/bar/db/migrate
create vendor/extensions/bar/lib/tasks
create vendor/extensions/bar/test/fixtures
create vendor/extensions/bar/test/functional
create vendor/extensions/bar/test/unit
create vendor/extensions/bar/README
create vendor/extensions/bar/Rakefile
create vendor/extensions/bar/bar_extension.rb
create vendor/extensions/bar/lib/tasks/bar_extension_tasks.rake
create vendor/extensions/bar/test/test_helper.rb
create
vendor/extensions/bar/test/functional/bar_extension_test.rb
monkeydrome:~/WorkingDirectory/foo aobrien$ rake test:extensions
(in /Users/aobrien/WorkingDirectory/foo)
cd /Users/aobrien/WorkingDirectory/foo/config/…/vendor/extensions/bar
(in /Users/aobrien/WorkingDirectory/foo/vendor/extensions/bar)
/usr/local/bin/ruby -Ilib:lib
“/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.2/lib/rake/rake_test_loader.rb”
“test/functional/bar_extension_test.rb”
/usr/local/lib/ruby/gems/1.8/gems/radiant-0.6.1/vendor/rails/activerecord/lib/…/…/activesupport/lib/active_support/dependencies.rb:263:in
load_missing_constant': uninitialized constant ActionController::Assertions::ResponseAssertions (NameError) from /usr/local/lib/ruby/gems/1.8/gems/radiant-0.6.1/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:452:in
const_missing’
from
/usr/local/lib/ruby/gems/1.8/gems/radiant-0.6.1/vendor/rails/actionpack/lib/action_controller/assertions.rb:49:in
included' from /usr/local/lib/ruby/gems/1.8/gems/radiant-0.6.1/vendor/rails/actionpack/lib/action_controller/assertions.rb:48:in
included’
from
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/integration.rb:17
from
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
require' from /usr/local/lib/ruby/gems/1.8/gems/radiant-0.6.1/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:495:in
require’
from
/usr/local/lib/ruby/gems/1.8/gems/radiant-0.6.1/vendor/rails/activerecord/lib/…/…/activesupport/lib/active_support/dependencies.rb:342:in
new_constants_in' from /usr/local/lib/ruby/gems/1.8/gems/radiant-0.6.1/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:495:in
require’
… 7 levels…
from ./test/functional/…/test_helper.rb:6
from ./test/functional/bar_extension_test.rb:1
from
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.2/lib/rake/rake_test_loader.rb:5
from
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.2/lib/rake/rake_test_loader.rb:5
rake aborted!
Command failed with status (1): [/usr/local/bin/ruby -Ilib:lib
"/usr/local/…]
(See full trace by running task with --trace)
cd -