lib/test_ids/allocator.rb in test_ids-0.3.1 vs lib/test_ids/allocator.rb in test_ids-0.3.2
- old
+ new
@@ -278,10 +278,10 @@
store['references']['number'] = store['references']['number'].sort_by { |k, v| v }.to_h
store['references']['number'].first[0].to_i
end
def extract_test_name(instance, options)
- name = options[:name]
+ name = options[:test_id] || options[:name]
unless name
if instance.is_a?(String)
name = instance
elsif instance.is_a?(Symbol)
name = instance.to_s