Skip to content

Commit

Permalink
Fix session clearing in the test helper.
Browse files Browse the repository at this point in the history
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
dylanahsmith committed Feb 27, 2013
1 parent 384faf4 commit 4390964
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/detailed_log_subscriber_test.rb
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions test/test_helper.rb
Expand Up @@ -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
Expand Down

0 comments on commit 4390964

Please sign in to comment.