[Rails] user engine: Role.count() is zero in tests

James Adam james.adam at gmail.com
Sat Dec 17 00:45:18 GMT 2005


Can you confirm there are roles in your test database? I.e. are you
using the console to connect to the test DB or the development DB
(default) ?

- james

On 12/17/05, Steve Ross <cwdinfo at gmail.com> wrote:
> Subject pretty much says it all. When user_engine#check_system_roles is
> called, it discovers that Role.count is zero. However using
> script/console to execute the same query reveals three users.
>
> N.b., this does not happen in the actual application; only when running
> tests.
>
> Any help is appreciated.
>
> Thx
>
> --
> Posted via http://www.ruby-forum.com/.
> _______________________________________________
> Rails mailing list
> Rails at lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>


More information about the Rails mailing list