Fresh App, Trying to run tests gives errors

0 views
Skip to first unread message

Mitch

unread,
Jun 20, 2009, 10:56:03 AM6/20/09
to adva-cms
I followed the Github instructions ("Installation: Edge version using
rails template
") to install adva-cms and then followed the testing instructions:

mitch@vash:~/Projects/my-app$ rake db:test:clone
(in /home/mitch/Projects/my-app)
mitch@vash:~/Projects/my-app$ ruby script/test-adva-cms -p
Preparing the database ...
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require': no such file to load -- /home/mitch/Projects/
my-app/vendor/engines/adva_cms/test/test_helper (MissingSourceFile)
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in
`require'
from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/
active_support/dependencies.rb:158:in `require'
from /home/mitch/Projects/my-app/vendor/plugins/adva_cells/test/
test_helper.rb:1
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in
`require'
from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/
active_support/dependencies.rb:158:in `require'
from /home/mitch/Projects/my-app/vendor/plugins/adva_cells/test/unit/
album_cell_test.rb:1
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in
`require'
from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/
active_support/dependencies.rb:158:in `require'
from ./vendor/adva/script/test:46:in `run'
from ./vendor/adva/script/test:46:in `each'
from ./vendor/adva/script/test:46:in `run'
from ./vendor/adva/script/test:53
from script/test-adva-cms:3:in `load'
from script/test-adva-cms:3

I can't figure out why these requires in the test files are causing
errors. I just wanted to ask to make sure that tests should work "out
of the box" this way (i.e. I'm not missing a step or running the tests
incorrectly). How can I get these test to run successfully? I'm on
Ubuntu 9.04. Thanks.

Clemens Kofler

unread,
Jun 20, 2009, 11:03:21 AM6/20/09
to adva-cms
Hi Mitch,

that sounds like adva-cms is sitting in vendor instead of vendor/adva
(your output says vendor/engines but it should be vendor/adva/
engines). Try moving it there and it should work. If you installed it
from the template, that probably means we have to fix the template.

- Clemens

Mitch

unread,
Jun 21, 2009, 10:48:28 AM6/21/09
to adva-cms
Thanks for the help. I finally got the test suite running!

Simply moving the directory, caused some issue with the adva test
script. Then after editing the test script to look at the right
script in /adva_cms there were some other path issues. I followed the
directions to do a manual install w/o the template and removed the
following line from adva_newsletter:

config.plugin_gem 'addressable', :version => '~> 2.1.0', :lib =>
'addressable/uri'

Then I was able to run the test suite (with some complaints and
failures about missing addressable). It's not perfect, but at least I
can write tests for adva now. Thanks!
Reply all
Reply to author
Forward
0 new messages