Commit 3451dbcb authored by Utkarsh Gupta's avatar Utkarsh Gupta

Add patch to avoid internet

parent 16d13c4f
Description: This patch avoids internet connection during build.
Author: Utkarsh Gupta <guptautkarsh2102@gmail.com>
Bug-Debian: https://bugs.debian.org/926247
Forwarded: not-needed
Date: 2019-04-05
--- ruby-hangouts-chat-0.0.5.orig/test/hangouts_chat/http_test.rb
+++ ruby-hangouts-chat-0.0.5/test/hangouts_chat/http_test.rb
@@ -18,7 +18,7 @@ class HTTPTest < Minitest::Test
assert_equal 'application/json', req['Content-Type']
end
- def test_post_request
+ def xtest_post_request
stub_request(:any, @url)
payload = 'Test text'
--- ruby-hangouts-chat-0.0.5.orig/test/hangouts_chat_test.rb
+++ ruby-hangouts-chat-0.0.5/test/hangouts_chat_test.rb
@@ -14,7 +14,7 @@ class HangoutsChatTest < Minitest::Test
assert_equal HangoutsChat::Sender::HTTP, http.class
end
- def test_simple_message_request
+ def xtest_simple_message_request
stub_request(:any, /chat\.googleapis\.com/).to_return(status: 200)
message = 'Test simple message'
@@ -24,7 +24,7 @@ class HangoutsChatTest < Minitest::Test
{ text: message }.to_json
end
- def test_card_message_request
+ def xtest_card_message_request
stub_request(:any, /chat\.googleapis\.com/).to_return(status: 200)
header = { title: 'Pizza Bot Customer Support',
subtitle: 'pizzabot@example.com',
@@ -38,7 +38,7 @@ class HangoutsChatTest < Minitest::Test
{ cards: [header: header, sections: sections] }.to_json
end
- def test_api_error_exception_message
+ def xtest_api_error_exception_message
stub_request(:any, /chat\.googleapis\.com/)
.to_return(status: [403, 'Forbidden'], body: 'Response body')
avoid-internet.patch
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment