summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/rels/tc_relationship.rb6
-rw-r--r--test/tc_package.rb4
2 files changed, 5 insertions, 5 deletions
diff --git a/test/rels/tc_relationship.rb b/test/rels/tc_relationship.rb
index 845f789e..f47b6a4d 100644
--- a/test/rels/tc_relationship.rb
+++ b/test/rels/tc_relationship.rb
@@ -14,10 +14,10 @@ class TestRelationships < Test::Unit::TestCase
assert_equal instance.Id, Axlsx::Relationship.new(source_obj, Axlsx::WORKSHEET_R, 'target').Id
end
- def test_instances_cache_is_thread_safe
+ def test_ids_cache_is_thread_safe
cache1, cache2 = nil
- t1 = Thread.new { cache1 = Axlsx::Relationship.instances }
- t2 = Thread.new { cache2 = Axlsx::Relationship.instances }
+ t1 = Thread.new { cache1 = Axlsx::Relationship.ids_cache }
+ t2 = Thread.new { cache2 = Axlsx::Relationship.ids_cache }
[t1, t2].each(&:join)
assert_not_same(cache1, cache2)
end
diff --git a/test/tc_package.rb b/test/tc_package.rb
index 4bd0d429..1e5ce322 100644
--- a/test/tc_package.rb
+++ b/test/tc_package.rb
@@ -236,8 +236,8 @@ class TestPackage < Test::Unit::TestCase
# this is just a roundabout guess for a package as it is build now
# in testing.
assert(stream.size > 80000)
- # Cached instances should be cleared
- assert(Axlsx::Relationship.instances.empty?)
+ # Cached ids should be cleared
+ assert(Axlsx::Relationship.ids_cache.empty?)
end
def test_encrypt