diff options
Diffstat (limited to 'spec/features/snippets/notes_on_personal_snippets_spec.rb')
-rw-r--r-- | spec/features/snippets/notes_on_personal_snippets_spec.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/features/snippets/notes_on_personal_snippets_spec.rb b/spec/features/snippets/notes_on_personal_snippets_spec.rb index eeacaf5f72a..308c605b0b1 100644 --- a/spec/features/snippets/notes_on_personal_snippets_spec.rb +++ b/spec/features/snippets/notes_on_personal_snippets_spec.rb @@ -67,20 +67,20 @@ describe 'Comments on personal snippets', :js do end it 'previews a note' do - fill_in 'note[note]', with: 'This is **awesome**!' + fill_in 'note[note]', with: _('This is **awesome**!') find('.js-md-preview-button').click page.within('.new-note .md-preview') do - expect(page).to have_content('This is awesome!') + expect(page).to have_content(_('This is awesome!')) expect(page).to have_selector('strong') end end it 'creates a note' do - fill_in 'note[note]', with: 'This is **awesome**!' + fill_in 'note[note]', with: _('This is **awesome**!') click_button 'Comment' - expect(find('div#notes')).to have_content('This is awesome!') + expect(find('div#notes')).to have_content(_('This is awesome!')) end it 'should not have autocomplete' do |