diff --git a/features/steps/shared/diff_note.rb b/features/steps/shared/diff_note.rb index aa31a09e3261606ac68e3e3da9bdd733661cbf39..7f1dde16c171b51763fce843754ca3b4afb56a0d 100644 --- a/features/steps/shared/diff_note.rb +++ b/features/steps/shared/diff_note.rb @@ -152,8 +152,8 @@ module SharedDiffNote step 'I should see two separate previews' do within(diff_file_selector) do expect(page).to have_css('.js-md-preview', count: 2) - expect(page).to have_content("Should fix it") - expect(page).to have_content("DRY this up") + expect(page).to have_content('Should fix it') + expect(page).to have_content('DRY this up') end end diff --git a/features/steps/shared/markdown.rb b/features/steps/shared/markdown.rb index 10da67a6ba89dd82c6caabb88ade081ea31e1f1b..8dfb8ed72e9cfbd7ffd80b965387045cc6db62fc 100644 --- a/features/steps/shared/markdown.rb +++ b/features/steps/shared/markdown.rb @@ -60,7 +60,7 @@ EOT end step 'The Markdown preview tab should say there is nothing to do' do - within(".gfm-form") do + within('.gfm-form') do find('.js-md-preview-button').click expect(find('.js-md-preview')).to have_content('Nothing to preview.') end @@ -79,7 +79,7 @@ EOT end step 'The Markdown preview tab should display rendered Markdown' do - within(".gfm-form") do + within('.gfm-form') do find('.js-md-preview-button').click expect(find('.js-md-preview')).to have_css('img.emoji') end @@ -92,7 +92,7 @@ EOT step 'I preview a description text like "Bug fixed :smile:"' do within('.gfm-form') do fill_in 'Description', with: 'Bug fixed :smile:' - find('.js-md-preview-button').click() + find('.js-md-preview-button').click end end diff --git a/features/steps/shared/note.rb b/features/steps/shared/note.rb index 9802614ec7299f7e55a4fa8c877c56d1bd9d728a..52d8c7e50fa01958cf152088c056426189d908e1 100644 --- a/features/steps/shared/note.rb +++ b/features/steps/shared/note.rb @@ -35,7 +35,7 @@ module SharedNote step 'I write a comment like ":+1: Nice"' do within(".js-main-target-form") do - fill_in "note[note]", with: ":+1: Nice" + fill_in 'note[note]', with: ':+1: Nice' end end diff --git a/spec/features/notes_on_merge_requests_spec.rb b/spec/features/notes_on_merge_requests_spec.rb index 3a99a260498bbf7d1d2115a6bf5676240ef85576..6d3cc3ae1591147b9bfab3866a5d661842cea441 100644 --- a/spec/features/notes_on_merge_requests_spec.rb +++ b/spec/features/notes_on_merge_requests_spec.rb @@ -32,8 +32,8 @@ describe 'Comments' do end it 'should have enable submit button and preview button' do - within(".js-main-target-form") do - expect(page).not_to have_css(".js-comment-button[disabled]") + within('.js-main-target-form') do + expect(page).not_to have_css('.js-comment-button[disabled]') expect(page).to have_css('.js-md-preview-button') end end @@ -51,8 +51,8 @@ describe 'Comments' do it 'should be added and form reset' do should have_content("This is awsome!") - within(".js-main-target-form") do - expect(page).to have_no_field("note[note]", with: "This is awesome!") + within('.js-main-target-form') do + expect(page).to have_no_field('note[note]', with: 'This is awesome!') expect(page).not_to have_css('.js-md-preview', visible: true) end within(".js-main-target-form") { should have_css(".js-note-text", visible: true) }