Apologies to the folks subscribed to the globalize list for dual
posting this message…
I’ve got a project running globalize and rails 1.1.4, and I’ve only
recently adopted a strong love for testing. Now my models are 100%
tested (I must note that I do not make use of any translations in the
database yet), and I’ve now started with functional tests before
moving on to integration tests.
It seems I cannot “assert_template” without getting results like:
- assert_template “index.rhtml” yields:
NoMethodError: You have a nil object when you didn’t expect it!
You might have expected an instance of Array.
The error occured while evaluating nil.
and 2. assert_template “index” yields:
expecting <“index”> but rendering with <“index.rhtml”>
I’ve spent the whole evening googling and digging around mailing list
archives, but to no avail… I know that testing is still on the todo
list for globalize, but what
is everyone else doing at the moment regarding functional tests? Does
the same count for integration tests? Or maybe if someone can point me
in the right direction for fixing the functional tests I can get
started on it.
But, I need to stress how thankfull I am for the code so far, it is
really a marvel.