Commit ae83fe5c authored by Mario Manno's avatar Mario Manno

fix notification test, invalid uppercase i18n locale

parent 12437c6a
......@@ -4,8 +4,8 @@ class NotificationTest < ActiveSupport::TestCase
setup do
@cfp = FactoryGirl.create(:call_for_papers)
FactoryGirl.create(:notification, call_for_papers: @cfp, locale: "EN")
FactoryGirl.create(:notification, call_for_papers: @cfp, locale: "DE")
FactoryGirl.create(:notification, call_for_papers: @cfp, locale: "en")
FactoryGirl.create(:notification, call_for_papers: @cfp, locale: "de")
@cfp.reload
end
......@@ -14,8 +14,8 @@ class NotificationTest < ActiveSupport::TestCase
end
test "cannot add same language twice" do
notification = Notification.new(call_for_papers: @cfp, locale: "EN")
notification.set_default_text "EN"
notification = Notification.new(call_for_papers: @cfp, locale: "en")
notification.set_default_text "en"
assert !notification.valid?
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment