add alias for booth

Booth can be replaced with any alias by replacing it in alias.en.yml. This change is introduced as some events do not use booth but uses other words such as stand.
This commit is contained in:
Rahul 2019-07-22 00:59:17 +05:30
parent 770a63e15c
commit 8c38de6cfd
29 changed files with 82 additions and 75 deletions

View file

@ -75,7 +75,7 @@ describe Admin::BoothsController do
end
it 'shows success message' do
expect(flash[:notice]).to match('Booth successfully created.')
expect(flash[:notice]).to match("#{(t 'booth').capitalize} successfully created.")
end
it 'creates a new user on inviting booth responsible' do
@ -106,7 +106,7 @@ describe Admin::BoothsController do
end
it 'shows flash message' do
expect(flash[:error]).to eq("Creating booth failed. Title can't be blank.")
expect(flash[:error]).to eq("Creating #{t 'booth'} failed. Title can't be blank.")
end
end
end
@ -131,7 +131,7 @@ describe Admin::BoothsController do
end
it 'shows success message' do
expect(flash[:notice]).to match 'Successfully updated booth.'
expect(flash[:notice]).to match "Successfully updated #{t 'booth'}."
end
it 'updates booth' do