Fix Rubocop issues
This commit is contained in:
parent
f67c4aafe0
commit
21e282679f
17 changed files with 50 additions and 33 deletions
|
|
@ -69,7 +69,7 @@ feature Commercial do
|
|||
|
||||
scenario 'does not add an invalid commercial of an event', feature: true, js: true do
|
||||
# TODO-SNAPCON
|
||||
skip("Snap!Con allows all materials to be saved.")
|
||||
skip('Snap!Con allows all materials to be saved.')
|
||||
visit edit_conference_program_proposal_path(conference.short_title, event.id)
|
||||
click_link 'Materials'
|
||||
fill_in 'commercial_url', with: 'invalid_commercial_url'
|
||||
|
|
|
|||
|
|
@ -35,6 +35,6 @@ def mock_commercial_request
|
|||
end
|
||||
|
||||
def mock_image_request
|
||||
WebMock.stub_request(:post, "https://api.cloudinary.com/v1_1/snapcon/image/destroy")
|
||||
WebMock.stub_request(:post, 'https://api.cloudinary.com/v1_1/snapcon/image/destroy')
|
||||
.to_return(status: 200, body: {}.to_json, headers: {})
|
||||
end
|
||||
|
|
|
|||
|
|
@ -88,6 +88,10 @@ module OmniauthMacros
|
|||
# account is available for every supported omniauth provider.
|
||||
# These must be identical to the ones in /config/environments/development.rb
|
||||
# Remember to keep them in sync with development.rb
|
||||
#
|
||||
# Note that the method length check is disabled to allow for better formatting
|
||||
# of the user params.
|
||||
# rubocop:disable Metrics/MethodLength
|
||||
def mock_auth_accounts
|
||||
OmniAuth.config.mock_auth[:facebook] =
|
||||
OmniAuth::AuthHash.new(
|
||||
|
|
@ -164,4 +168,5 @@ module OmniauthMacros
|
|||
}
|
||||
)
|
||||
end
|
||||
# rubocop:enable Metrics/MethodLength
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue