Login Engine Test Fail


The login rake default test seems to fail as it doesn’t take into
account my
custom :user_table. I have changed it to use the “account” table name,
it still drops to drop table “users”.

  • Nathan


Which tests fail? This will help track down the bug… also, where are
you defining your customer :user_table value?


Hey James,

Well currently I have been using SVN, and the rakefile just disappeared

I have found that by renaming the table name in the configuration, that
testing fails as the fixtures don’t correlate with the table name. If I
to modify the fixtures to match the table name, then the code within the
test would fail as well.

Also, I am trying to setup the testing environment on another engine,
have not had much luck. I keep getting this error:

[root@inimit railsacl_engine]# rake test
(in /home/httpd/vhosts/rails/vendor/plugins/railsacl_engine)
/usr/local/bin/ruby -Ilib:lib
from ./test/unit/…/…/db/schema.rb:7
from ./test/unit/…/…/db/schema.rb:5:in instance_eval' from /home/httpd/vhosts/rails/config/../vendor/rails/activerecord/lib/active_reco rd/schem' from /home/httpd/vhosts/rails/config/../vendor/rails/activerecord/lib/active_reco rd/schem' from ./test/unit/../../db/schema.rb:5 from /home/httpd/vhosts/rails/config/../vendor/rails/activerecord/lib/../../activ esupport' from /home/httpd/vhosts/rails/config/../vendor/rails/activerecord/lib/../../activ esupport' from ./test/unit/../test_helper.rb:4 from ./test/unit/rubyacl_test.rb:1:inrequire’
from ./test/unit/rubyacl_test.rb:1
in load' from /usr/local/lib/ruby/gems/1.8/gems/rake-0.6.2/lib/rake/rake_test_loader.rb:5 from /usr/local/lib/ruby/gems/1.8/gems/rake-0.6.2/lib/rake/rake_test_loader.rb:5: ineach’
rake aborted!
Command failed with status (1): [/usr/local/bin/ruby -Ilib:lib

Any help would be greatly appreciated. I was using as much of the
login_engine that I could for the framework, but I can’t seem to setup a
correct test environment. Possibly if I get the login_engine to test
I can replicate it in my own plugin engine.

I am using edge rails with the edge login_engine.

Warmest regards,