Update poll questions translatable fields
We need to replace ".title=" by ".title_#{locale}=" in one place because
for some reason globalize builds a new translation record when using the
latter but it doesn't build one when using the former.
This commit is contained in:
@@ -46,7 +46,7 @@ feature 'Admin poll questions' do
|
||||
click_link "Create question"
|
||||
|
||||
select 'Movies', from: 'poll_question_poll_id'
|
||||
fill_in 'poll_question_title_en', with: title
|
||||
fill_in 'Question', with: title
|
||||
|
||||
click_button 'Save'
|
||||
|
||||
@@ -61,7 +61,7 @@ feature 'Admin poll questions' do
|
||||
click_link "Create question"
|
||||
|
||||
expect(page).to have_current_path(new_admin_question_path, ignore_query: true)
|
||||
expect(page).to have_field('poll_question_title_en', with: proposal.title)
|
||||
expect(page).to have_field('Question', with: proposal.title)
|
||||
|
||||
select 'Proposals', from: 'poll_question_poll_id'
|
||||
|
||||
@@ -84,7 +84,7 @@ feature 'Admin poll questions' do
|
||||
|
||||
old_title = question1.title
|
||||
new_title = "Potatoes are great and everyone should have one"
|
||||
fill_in 'poll_question_title_en', with: new_title
|
||||
fill_in 'Question', with: new_title
|
||||
|
||||
click_button 'Save'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user