Forum: Ruby on Rails Login Engine Test Fail

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
631950bd299098576e57053ce703e082?d=identicon&s=25 nshb (Guest)
on 2005-11-12 12:49
(Received via mailing list)
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
05d703f649ef1d07e78d7b479fb4c4ac?d=identicon&s=25 james.adam (Guest)
on 2005-11-12 12:49
(Received via mailing list)
Which tests fail? This will help track down the bug... also, where are
you defining your customer :user_table value?
631950bd299098576e57053ce703e082?d=identicon&s=25 nshb (Guest)
on 2005-11-12 12:49
(Received via mailing list)
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.
This topic is locked and can not be replied to.