Permalink
Browse files

only include threadsafe tests when using threadsafe

  • Loading branch information...
1 parent c03a4cc commit 8c415be31e971516883768469780ffce47eb68e5 @peterjm peterjm committed Feb 19, 2014
Showing with 2 additions and 0 deletions.
  1. +2 −0 test/base_test.rb
View
2 test/base_test.rb
@@ -80,7 +80,9 @@ def teardown
ShopifyAPI::Base.headers['X-Custom'] = nil
assert_nil ShopifyAPI::Product.headers['X-Custom']
end
+ end
+ if ActiveResource::VERSION::MAJOR >= 4 && ActiveResource::VERSION::PRE == "threadsafe"
test "#headers set in the main thread affect spawned threads" do
ShopifyAPI::Base.headers['X-Custom'] = "the value"
Thread.new do

0 comments on commit 8c415be

Please sign in to comment.