# Login Engine Test Fail

**URL:** <https://www.ruby-forum.com/t/login-engine-test-fail/47762>\
**Category:** Rails\
**Created:** [November 12, 2005, 12:49pm UTC](https://www.ruby-forum.com/t/login-engine-test-fail/47762 "2005-11-12T12:49:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nshb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/df788c/32.png) [@nshb](https://www.ruby-forum.com/u/nshb)\
**Post date:** [November 12, 2005, 12:49pm UTC](https://www.ruby-forum.com/t/login-engine-test-fail/47762/1 "2005-11-12T12:49:54Z")

</div>

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,  
yet  
it still drops to drop table “users”.

- Nathan

---

<div class="post-metadata">

**Author:** ![nshb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/df788c/32.png) [@nshb](https://www.ruby-forum.com/u/nshb)\
**Post date:** [November 12, 2005, 12:49pm UTC](https://www.ruby-forum.com/t/login-engine-test-fail/47762/2 "2005-11-12T12:49:54Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![nshb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/df788c/32.png) [@nshb](https://www.ruby-forum.com/u/nshb)\
**Post date:** [November 12, 2005, 12:49pm UTC](https://www.ruby-forum.com/t/login-engine-test-fail/47762/3 "2005-11-12T12:49:58Z")

</div>

Hey James,

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

I have found that by renaming the table name in the configuration, that  
the  
testing fails as the fixtures don’t correlate with the table name. If I  
was  
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,  
and  
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  
“/usr/local/lib/ruby/gems/1.8/gems/rake-0.6.2/lib/rake/rake\_test\_loader.rb”  
"test/unit/rubyacl\_test.r  
/home/httpd/vhosts/rails/config/…/vendor/rails/activerecord/lib/…/…/activ  
esupport/lib/active\_s)  
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:in`require’  
from ./test/unit/rubyacl\_test.rb:1  
from  
/usr/local/lib/ruby/gems/1.8/gems/rake-0.6.2/lib/rake/rake\_test\_loader.rb:5:  
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: in`each’  
from  
/usr/local/lib/ruby/gems/1.8/gems/rake-0.6.2/lib/rake/rake\_test\_loader.rb:5  
rake aborted!  
Command failed with status (1): [/usr/local/bin/ruby -Ilib:lib  
"/usr/local/…]

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  
right,  
I can replicate it in my own plugin engine.

I am using edge rails with the edge login\_engine.

Warmest regards,  
Nathan.
