Skip to content

Commit

Permalink
Merge dfc8ed8 into c830ca1
Browse files Browse the repository at this point in the history
  • Loading branch information
LarsJohanFolde committed Mar 22, 2024
2 parents c830ca1 + dfc8ed8 commit e4f31b8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/locales/en.yml
Expand Up @@ -1252,7 +1252,7 @@ en:
#context: generic message
messages:
not_visible: "This competition is not visible to the public."
name_too_long: "The competition name is longer than 32 characters. We prefer shorter ones and we will be glad if you change it."
name_too_long: "The competition name is longer than 32 characters. Please edit the competition ID and short name appropriately."
id_starts_with_lowercase: "The competition id starts with a lowercase letter. We prefer to have it start with an uppercase."
must_have_events: "Please add at least one event before confirming the competition."
schedule_must_match_rounds: "Please make sure the competition has at least one round per event and that the schedule you created includes all the rounds you declared before confirming the competition."
Expand Down
2 changes: 1 addition & 1 deletion spec/models/competition_spec.rb
Expand Up @@ -443,7 +443,7 @@
it "warns if competition name is greater than 32 characters and it's not publicly visible" do
competition = FactoryBot.build :competition, name: "A really long competition name 2016", showAtAll: false
expect(competition).to be_valid
expect(competition.warnings_for(nil)[:name]).to eq "The competition name is longer than 32 characters. We prefer shorter ones and we will be glad if you change it."
expect(competition.warnings_for(nil)[:name]).to eq "The competition name is longer than 32 characters. Please edit the competition ID and short name appropriately."
end

it "does not warn about name greater than 32 when competition is publicly visible" do
Expand Down

0 comments on commit e4f31b8

Please sign in to comment.