the custom field needs an explicit english translation which differs from the other fields' name. if not it will fallback to the german value and this test would fail for the wrong reason.

pull/1186/head
Martin Linkhorst 12 years ago
parent 85b34be86c
commit 74581292f4
  1. 8
      spec/models/custom_field_spec.rb

@ -42,8 +42,14 @@ describe CustomField do
before do before do
I18n.locale = :de I18n.locale = :de
field2.name = "taken_name" field2.name = "taken_name"
field2.save!
# this fields needs an explicit english translations
# otherwise it falls back using the german one
I18n.locale = :en I18n.locale = :en
field2.name = "unique_name"
field2.save!
field.name = "taken_name" field.name = "taken_name"
end end

Loading…
Cancel
Save