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
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”.
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
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 forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs