Add test for load plurals before precompile

This commit is contained in:
Krugloff 2013-06-16 00:50:59 +04:00
parent ae81523aa5
commit c964c5c0d5

View file

@ -79,4 +79,9 @@ describe JsLocaleHelper do
ctx.eval('I18n.messageFormat("simple_MF", {})').should =~ /COUNT/ # error
end
it 'load pluralizations rules before precompile' do
message = JsLocaleHelper.compile_message_format('ru', 'format')
message.should_not match 'Plural Function not found'
end
end