fix rubocop (oops)

This commit is contained in:
Mike Greiling 2017-10-20 08:28:38 +03:00
parent b673fcc14f
commit 95d629a1ea
No known key found for this signature in database
GPG Key ID: 0303DF507FA67596
3 changed files with 6 additions and 6 deletions

View File

@ -17,13 +17,13 @@ feature 'GFM autocomplete', :js do
end
after do
execute_script("localStorage.clear();");
execute_script("localStorage.clear();")
end
it 'updates issue descripton with GFM reference' do
find('.issuable-edit').click
simulateInput('#issue-description', "@#{user.name[0...3]}")
simulate_input('#issue-description', "@#{user.name[0...3]}")
find('.atwho-view .cur').click
@ -106,7 +106,7 @@ feature 'GFM autocomplete', :js do
it 'includes items for assignee dropdowns with non-ASCII characters in name' do
page.within '.timeline-content-form' do
find('#note-body').native.send_keys('')
simulateInput('#note-body', "@#{user.name[0...8]}");
simulate_input('#note-body', "@#{user.name[0...8]}")
end
expect(page).to have_selector('.atwho-container')
@ -134,7 +134,7 @@ feature 'GFM autocomplete', :js do
note = find('#note-body')
page.within '.timeline-content-form' do
note.native.send_keys('')
simulateInput('#note-body', "~#{label.title[0]}")
simulate_input('#note-body', "~#{label.title[0]}")
note.click
end

View File

@ -12,7 +12,7 @@ feature 'Issue markdown toolbar', :js do
end
after do
execute_script("localStorage.clear();");
execute_script("localStorage.clear();")
end
it "doesn't include first new line when adding bold" do

View File

@ -1,7 +1,7 @@
# see app/assets/javascripts/test_utils/simulate_input.js
module InputHelper
def simulateInput(selector, input = '')
def simulate_input(selector, input = '')
evaluate_script("window.simulateInput(#{selector.to_json}, #{input.to_json});")
end
end