diff --git a/test/models/bot/smooch_6_test.rb b/test/models/bot/smooch_6_test.rb index f46cc3f7d..ba6f567bf 100644 --- a/test/models/bot/smooch_6_test.rb +++ b/test/models/bot/smooch_6_test.rb @@ -969,7 +969,8 @@ def send_message_outside_24_hours_window(template, pm = nil) end test "should get dynamic resource on tipline bot v2" do - WebMock.stub_request(:get, /googleapis\.com\/civicinfo/).to_return(body: { pollingLocations: [{ address: {} }], earlyVoteSites: [{ address: {} }] }.to_json) + civic_api_mocked_data = { pollingLocations: [{ address: {}, startDate: '2024-11-01', endDate: '2024-11-05', pollingHours: '7am - 5pm' }], earlyVoteSites: [{ address: {}, startDate: '2024-11-01', endDate: '2024-11-05', pollingHours: '7am - 5pm' }] } + WebMock.stub_request(:get, /googleapis\.com\/civicinfo/).to_return(body: civic_api_mocked_data.to_json) stub_configs({ 'google_api_key' => random_string }) do @resource.content_type = 'dynamic' @resource.save!