spec/i18n_spec.rb in formtastic-0.9.9 vs spec/i18n_spec.rb in formtastic-0.9.10
- old
+ new
@@ -24,15 +24,15 @@
before do
@formtastic_strings = {
:yes => 'Default Yes',
:no => 'Default No',
- :create => 'Default Create %{model}',
- :update => 'Default Update %{model}',
+ :create => 'Default Create {{model}}',
+ :update => 'Default Update {{model}}',
:custom_scope => {
:duck => 'Duck',
- :duck_pond => '%{ducks} ducks in a pond'
+ :duck_pond => '{{ducks}} ducks in a pond'
}
}
::I18n.backend.store_translations :en, :formtastic => @formtastic_strings
end
@@ -69,10 +69,10 @@
::I18n.backend.reload!
end
it "should use default strings" do
(::Formtastic::I18n::DEFAULT_VALUES.keys).each do |key|
- ::Formtastic::I18n.t(key, :model => '%{model}').should == ::Formtastic::I18n::DEFAULT_VALUES[key]
+ ::Formtastic::I18n.t(key, :model => '{{model}}').should == ::Formtastic::I18n::DEFAULT_VALUES[key]
end
end
end
\ No newline at end of file