| 
														
															@@ -8,7 +8,6 @@ class LogSubscriberTest < Test::Unit::TestCase 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     super 
														 | 
														
														 | 
														
															     super 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     @page = { :page => { :id => 1, :title => 'Shopify API' } }.to_json 
														 | 
														
														 | 
														
															     @page = { :page => { :id => 1, :title => 'Shopify API' } }.to_json 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     @ua_header = "\"User-Agent\"=>\"ShopifyAPI/#{ShopifyAPI::VERSION} ActiveResource/#{ActiveResource::VERSION::STRING} Ruby/#{RUBY_VERSION}\"" 
														 | 
														
														 | 
														
															     @ua_header = "\"User-Agent\"=>\"ShopifyAPI/#{ShopifyAPI::VERSION} ActiveResource/#{ActiveResource::VERSION::STRING} Ruby/#{RUBY_VERSION}\"" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-    @ver_header = "\"X-Shopify-Checkout-Version\"=>\"2016-09-06\"" 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															     ShopifyAPI::Base.clear_session 
														 | 
														
														 | 
														
															     ShopifyAPI::Base.clear_session 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     ShopifyAPI::Base.site = "https://this-is-my-test-shop.myshopify.com/admin" 
														 | 
														
														 | 
														
															     ShopifyAPI::Base.site = "https://this-is-my-test-shop.myshopify.com/admin" 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -29,7 +28,7 @@ class LogSubscriberTest < Test::Unit::TestCase 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     assert_equal 4, @logger.logged(:info).size 
														 | 
														
														 | 
														
															     assert_equal 4, @logger.logged(:info).size 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     assert_equal "GET https://this-is-my-test-shop.myshopify.com:443/admin/pages/1.json", @logger.logged(:info)[0] 
														 | 
														
														 | 
														
															     assert_equal "GET https://this-is-my-test-shop.myshopify.com:443/admin/pages/1.json", @logger.logged(:info)[0] 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     assert_match /\-\-\> 200/, @logger.logged(:info)[1] 
														 | 
														
														 | 
														
															     assert_match /\-\-\> 200/, @logger.logged(:info)[1] 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-    assert_equal "Headers: {\"Accept\"=>\"application/json\", #{@ua_header}, #{@ver_header}}", @logger.logged(:info)[2] 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    assert_equal "Headers: {\"Accept\"=>\"application/json\", #{@ua_header}}", @logger.logged(:info)[2] 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     assert_match /Response:\n\{\"page\"\:\{((\"id\"\:1)|(\"title\"\:\"Shopify API\")),((\"id\"\:1)|(\"title\"\:\"Shopify API\"))\}\}/,  @logger.logged(:info)[3] 
														 | 
														
														 | 
														
															     assert_match /Response:\n\{\"page\"\:\{((\"id\"\:1)|(\"title\"\:\"Shopify API\")),((\"id\"\:1)|(\"title\"\:\"Shopify API\"))\}\}/,  @logger.logged(:info)[3] 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															   end 
														 | 
														
														 | 
														
															   end 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -44,7 +43,7 @@ class LogSubscriberTest < Test::Unit::TestCase 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     assert_equal 4, @logger.logged(:info).size 
														 | 
														
														 | 
														
															     assert_equal 4, @logger.logged(:info).size 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     assert_equal "GET https://this-is-my-test-shop.myshopify.com:443/admin/pages/2.json", @logger.logged(:info)[0] 
														 | 
														
														 | 
														
															     assert_equal "GET https://this-is-my-test-shop.myshopify.com:443/admin/pages/2.json", @logger.logged(:info)[0] 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     assert_match /\-\-\> 404/, @logger.logged(:info)[1] 
														 | 
														
														 | 
														
															     assert_match /\-\-\> 404/, @logger.logged(:info)[1] 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-    assert_equal "Headers: {\"Accept\"=>\"application/json\", #{@ua_header}, #{@ver_header}}", @logger.logged(:info)[2] 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    assert_equal "Headers: {\"Accept\"=>\"application/json\", #{@ua_header}}", @logger.logged(:info)[2] 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     assert_equal "Response:", @logger.logged(:info)[3] 
														 | 
														
														 | 
														
															     assert_equal "Response:", @logger.logged(:info)[3] 
														 | 
													
												
											
												
													
														| 
														 | 
														
															   end 
														 | 
														
														 | 
														
															   end 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 end 
														 | 
														
														 | 
														
															 end 
														 |