Adding a bunch of tests
This commit is contained in:
parent
44c5958203
commit
f16b31f077
22 changed files with 439 additions and 105 deletions
|
@ -6,8 +6,8 @@ module ApplicationHelper
|
|||
end
|
||||
|
||||
def unique_tag_to_local_id(tag, expected_type)
|
||||
Regexp.new("objectId=([\d]+):objectType=#{expected_type}").match(tag)
|
||||
return match[1] unless match.nil?
|
||||
matches = Regexp.new("objectId=([\\d]+):objectType=#{expected_type}").match(tag)
|
||||
return matches[1] unless matches.nil?
|
||||
end
|
||||
|
||||
def local_id?(id)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue