Skip to content
Snippets Groups Projects
Commit 74c82ae3 authored by Vinnie Okada's avatar Vinnie Okada
Browse files

Fix houndci warnings

parent f9e423b4
No related branches found
No related tags found
No related merge requests found
Loading
@@ -152,8 +152,8 @@ module SharedDiffNote
Loading
@@ -152,8 +152,8 @@ module SharedDiffNote
step 'I should see two separate previews' do step 'I should see two separate previews' do
within(diff_file_selector) do within(diff_file_selector) do
expect(page).to have_css('.js-md-preview', count: 2) expect(page).to have_css('.js-md-preview', count: 2)
expect(page).to have_content("Should fix it") expect(page).to have_content('Should fix it')
expect(page).to have_content("DRY this up") expect(page).to have_content('DRY this up')
end end
end end
   
Loading
Loading
Loading
@@ -60,7 +60,7 @@ EOT
Loading
@@ -60,7 +60,7 @@ EOT
end end
   
step 'The Markdown preview tab should say there is nothing to do' do 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 find('.js-md-preview-button').click
expect(find('.js-md-preview')).to have_content('Nothing to preview.') expect(find('.js-md-preview')).to have_content('Nothing to preview.')
end end
Loading
@@ -79,7 +79,7 @@ EOT
Loading
@@ -79,7 +79,7 @@ EOT
end end
   
step 'The Markdown preview tab should display rendered Markdown' do step 'The Markdown preview tab should display rendered Markdown' do
within(".gfm-form") do within('.gfm-form') do
find('.js-md-preview-button').click find('.js-md-preview-button').click
expect(find('.js-md-preview')).to have_css('img.emoji') expect(find('.js-md-preview')).to have_css('img.emoji')
end end
Loading
@@ -92,7 +92,7 @@ EOT
Loading
@@ -92,7 +92,7 @@ EOT
step 'I preview a description text like "Bug fixed :smile:"' do step 'I preview a description text like "Bug fixed :smile:"' do
within('.gfm-form') do within('.gfm-form') do
fill_in 'Description', with: 'Bug fixed :smile:' fill_in 'Description', with: 'Bug fixed :smile:'
find('.js-md-preview-button').click() find('.js-md-preview-button').click
end end
end end
   
Loading
Loading
Loading
@@ -35,7 +35,7 @@ module SharedNote
Loading
@@ -35,7 +35,7 @@ module SharedNote
   
step 'I write a comment like ":+1: Nice"' do step 'I write a comment like ":+1: Nice"' do
within(".js-main-target-form") do within(".js-main-target-form") do
fill_in "note[note]", with: ":+1: Nice" fill_in 'note[note]', with: ':+1: Nice'
end end
end end
   
Loading
Loading
Loading
@@ -32,8 +32,8 @@ describe 'Comments' do
Loading
@@ -32,8 +32,8 @@ describe 'Comments' do
end end
   
it 'should have enable submit button and preview button' do it 'should have enable submit button and preview button' do
within(".js-main-target-form") do within('.js-main-target-form') do
expect(page).not_to have_css(".js-comment-button[disabled]") expect(page).not_to have_css('.js-comment-button[disabled]')
expect(page).to have_css('.js-md-preview-button') expect(page).to have_css('.js-md-preview-button')
end end
end end
Loading
@@ -51,8 +51,8 @@ describe 'Comments' do
Loading
@@ -51,8 +51,8 @@ describe 'Comments' do
   
it 'should be added and form reset' do it 'should be added and form reset' do
should have_content("This is awsome!") should have_content("This is awsome!")
within(".js-main-target-form") do within('.js-main-target-form') do
expect(page).to have_no_field("note[note]", with: "This is awesome!") expect(page).to have_no_field('note[note]', with: 'This is awesome!')
expect(page).not_to have_css('.js-md-preview', visible: true) expect(page).not_to have_css('.js-md-preview', visible: true)
end end
within(".js-main-target-form") { should have_css(".js-note-text", visible: true) } within(".js-main-target-form") { should have_css(".js-note-text", visible: true) }
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment