lib/howitzer/utils/page_validator.rb in howitzer-1.0.2 vs lib/howitzer/utils/page_validator.rb in howitzer-1.1.0

- old
+ new

@@ -68,10 +68,10 @@ # @raise [Howitzer::UnknownValidationError] If unknown validation type was passed # def validates(name, options) log.error TypeError, "Expected options to be Hash, actual is '#{options.class}'" unless options.class == Hash PageValidator.validations[self.name] ||= {} - case name.to_sym + case name.to_s.to_sym when :url validate_by_pattern(:url, options) when :element_presence validate_element options when :title \ No newline at end of file