-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update cops and reformat with rubocop
Also activates available rubocop plugins.
- Loading branch information
1 parent
4ab2fd3
commit bbdacb3
Showing
9 changed files
with
180 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
require 'rails_helper' | ||
|
||
describe 'Feedback form (js)', js: true do | ||
describe 'Feedback form (js)', :js do | ||
before do | ||
visit root_path | ||
end | ||
|
@@ -10,15 +10,15 @@ | |
end | ||
|
||
it 'feedback form should be shown filled out and submitted' do | ||
click_link 'Feedback' | ||
click_on 'Feedback' | ||
skip('Passes locally, not on Travis.') if ENV['CI'] | ||
expect(page).to have_css('#feedback-form', visible: true) | ||
expect(page).to have_button('Cancel') | ||
within 'form.feedback-form' do | ||
fill_in('message', with: 'This is only a test') | ||
fill_in('name', with: 'Ronald McDonald') | ||
fill_in('to', with: '[email protected]') | ||
click_button 'Send' | ||
click_on 'Send' | ||
end | ||
expect(page).to have_css('div.alert-success', text: 'Thank you! Your feedback has been sent.') | ||
end | ||
|
@@ -30,14 +30,14 @@ | |
end | ||
|
||
it 'feedback form should be shown filled out and submitted' do | ||
click_link 'Feedback' | ||
click_on 'Feedback' | ||
expect(page).to have_css('#feedback-form', visible: true) | ||
expect(page).to have_link('Cancel') | ||
within 'form.feedback-form' do | ||
fill_in('message', with: 'This is only a test') | ||
fill_in('name', with: 'Ronald McDonald') | ||
fill_in('to', with: '[email protected]') | ||
click_button 'Send' | ||
click_on 'Send' | ||
end | ||
expect(page).to have_css('div.alert-success', text: 'Thank you! Your feedback has been sent.') | ||
end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters