From 8cb43a3773f6e47c86fb588d5a4278dc64cca8a4 Mon Sep 17 00:00:00 2001 From: Xavier MALPARTY Date: Wed, 23 Jun 2021 17:09:55 +0700 Subject: [PATCH] [#7] Rebase from search-raw after user-login-api merge --- db/schema.rb | 2 +- .../google_service/client_service_spec.rb | 27 ------------------- 2 files changed, 1 insertion(+), 28 deletions(-) delete mode 100644 spec/services/google_service/client_service_spec.rb diff --git a/db/schema.rb b/db/schema.rb index a301e11f..f80455d2 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -12,7 +12,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 2021_06_14_164900) do +ActiveRecord::Schema.define(version: 2021_06_21_104559) do # These are extensions that must be enabled in order to support this database enable_extension 'citext' enable_extension 'plpgsql' diff --git a/spec/services/google_service/client_service_spec.rb b/spec/services/google_service/client_service_spec.rb deleted file mode 100644 index d169a962..00000000 --- a/spec/services/google_service/client_service_spec.rb +++ /dev/null @@ -1,27 +0,0 @@ -# frozen_string_literal: true - -require 'rails_helper' - -RSpec.describe Google::ClientService, type: :service do - context 'when querying a simple keyword' do - it 'returns an HTTParty Response', vcr: 'google_search' do -<<<<<<< HEAD - result = described_class.query(FFaker::Lorem.word) -======= - result = described_class.new(FFaker::Lorem.word).call ->>>>>>> d03ca6f ([#7] Rename GoogleService namespace in Google) - - expect(result).to be_an_instance_of(HTTParty::Response) - end - - it 'queries Google Search', vcr: 'google_search' do -<<<<<<< HEAD - path = described_class.query(FFaker::Lorem.word).request.path -======= - path = described_class.new(FFaker::Lorem.word).call.request.path ->>>>>>> d03ca6f ([#7] Rename GoogleService namespace in Google) - - expect(path.to_s).to start_with('https://www.google.com/search') - end - end -end