diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 704b8e08..60e07602 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -63,7 +63,12 @@ RSpec.configure do |config| Capybara.javascript_driver = :poltergeist Capybara.register_driver :poltergeist do |app| - Capybara::Poltergeist::Driver.new(app, phantomjs: Phantomjs.path, js_errors: false, window_size: [1920, 1080]) + Capybara::Poltergeist::Driver.new( + app, + phantomjs: Phantomjs.path, + js_errors: false, + window_size: [1920, 1080] + ) end # Includes helpers and connect them to specific types of tests diff --git a/spec/support/external_request.rb b/spec/support/external_request.rb index d09ebc0a..ed7da3d3 100644 --- a/spec/support/external_request.rb +++ b/spec/support/external_request.rb @@ -11,9 +11,9 @@ end def mock_commercial_request response = { author_name: 'Confreaks', - html: '', + html: '', thumbnail_width: 480, - thumbnail_url: 'https://i.ytimg.com/vi/BTTygyxuGj8/hqdefault.jpg', + thumbnail_url: '/images/rails.png', provider_name: 'YouTube', width: 459, type: 'video',