Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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.
  • Loading branch information...
commit 439096476abb8fbefdb47cf1705a6002d144faa7 1 parent 384faf4
@dylanahsmith dylanahsmith authored
Showing with 2 additions and 0 deletions.
  1. +1 −0  test/detailed_log_subscriber_test.rb
  2. +1 −0  test/test_helper.rb
View
1  test/detailed_log_subscriber_test.rb
@@ -9,6 +9,7 @@ def setup
@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
View
1  test/test_helper.rb
@@ -34,6 +34,7 @@ def setup
end
end
+ ShopifyAPI::Base.clear_session
ShopifyAPI::Base.site = "http://localhost/admin"
ShopifyAPI::Base.password = nil
ShopifyAPI::Base.user = nil
Please sign in to comment.
Something went wrong with that request. Please try again.