فهرست منبع

Fix session clearing in the test helper.

LogSubscriberTest ends up using the LogSubscripter::TestHelper which
prevents the normal test helper from running, so the session must be
cleared there as well.
Dylan Smith 12 سال پیش
والد
کامیت
439096476a
2فایلهای تغییر یافته به همراه2 افزوده شده و 0 حذف شده
  1. 1 0
      test/detailed_log_subscriber_test.rb
  2. 1 0
      test/test_helper.rb

+ 1 - 0
test/detailed_log_subscriber_test.rb

@@ -9,6 +9,7 @@ class LogSubscriberTest < Test::Unit::TestCase
     @page = { :page => { :id => 1, :title => 'Shopify API' } }.to_json
     @ua_header = "\"User-Agent\"=>\"ShopifyAPI/#{ShopifyAPI::VERSION} ActiveResource/#{ActiveResource::VERSION::STRING} Ruby/#{RUBY_VERSION}\""
 
+    ShopifyAPI::Base.clear_session
     ShopifyAPI::Base.site = "http://localhost/admin"
 
     ActiveResource::LogSubscriber.attach_to :active_resource

+ 1 - 0
test/test_helper.rb

@@ -34,6 +34,7 @@ class Test::Unit::TestCase
       end
     end
 
+    ShopifyAPI::Base.clear_session
     ShopifyAPI::Base.site = "http://localhost/admin"
     ShopifyAPI::Base.password = nil
     ShopifyAPI::Base.user = nil