lib/true_automation/helpers.rb in true_automation-0.3.2 vs lib/true_automation/helpers.rb in true_automation-0.3.4
- old
+ new
@@ -23,10 +23,10 @@
##
#
# @return [String] TrueAutomation.IO locator
#
def self.ta(name, locator = '')
- if locator.empty?
+ if !locator.empty?
"#{locator}__ta__#{name}__ta__"
else
"__taonly__#{name}__taonly__"
end
end