Fixed up a failing test due to the i18n module, left a fixme note.
This commit is contained in:
parent
216b77ab41
commit
4622c4359f
@ -56,12 +56,16 @@ module Locomotive
|
|||||||
|
|
||||||
protected
|
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!
|
def create_default_pages!
|
||||||
%w{index 404}.each do |slug|
|
%w{index 404}.each do |slug|
|
||||||
self.pages.create({
|
self.pages.create({
|
||||||
:slug => slug,
|
:slug => slug,
|
||||||
:title => I18n.t("attributes.defaults.pages.#{slug}.title"),
|
:title => ::I18n.t("attributes.defaults.pages.#{slug}.title"),
|
||||||
:raw_template => I18n.t("attributes.defaults.pages.#{slug}.body"),
|
:raw_template => ::I18n.t("attributes.defaults.pages.#{slug}.body"),
|
||||||
:published => true
|
:published => true
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user