add booth in alias
Booth can be replaced with any alias by replacing it in alias.en.yml.
This commit is contained in:
parent
8eb059276f
commit
bf7a7932ba
29 changed files with 81 additions and 74 deletions
|
|
@ -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
|
||||
end
|
||||
|
||||
|
|
@ -94,7 +94,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
|
||||
|
|
@ -119,7 +119,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
|
||||
|
|
|
|||
|
|
@ -55,7 +55,7 @@ describe 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
|
||||
end
|
||||
|
||||
|
|
@ -74,7 +74,7 @@ describe 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
|
||||
|
|
|
|||
|
|
@ -121,6 +121,10 @@ RSpec.configure do |config|
|
|||
# save_and_open_page
|
||||
# end
|
||||
# end
|
||||
|
||||
# use the config to use
|
||||
# t('some.locale.key') instead of always having to type I18n.t
|
||||
config.include AbstractController::Translation
|
||||
end
|
||||
|
||||
OmniAuth.config.test_mode = true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue