Fixed up a failing test due to the i18n module, left a fixme note.

This commit is contained in:
Mario Visic 2012-01-15 15:05:31 +11:00
parent 216b77ab41
commit 4622c4359f

View File

@ -56,12 +56,16 @@ module Locomotive
protected
# FIXME: Currently there is no t/translate method on the I18n module
# Extensions::Site::I18n which is breaking the testing. The
# namespaced ::I18n should be changed to just I18n when the t()
# method is available
def create_default_pages!
%w{index 404}.each do |slug|
self.pages.create({
:slug => slug,
:title => I18n.t("attributes.defaults.pages.#{slug}.title"),
:raw_template => I18n.t("attributes.defaults.pages.#{slug}.body"),
:title => ::I18n.t("attributes.defaults.pages.#{slug}.title"),
:raw_template => ::I18n.t("attributes.defaults.pages.#{slug}.body"),
:published => true
})
end