Sha256: e1f03d20b22618527378713317701443b623da4ad1e80585700aea14addb30e7
Contents?: true
Size: 362 Bytes
Versions: 158
Compression:
Stored size: 362 Bytes
Contents
# frozen_string_literal: true module SelectDateSpecHelper def select_date(date, options = {}) field = options[:from] base_id = find(:xpath, ".//label[contains(.,'#{field}')]")[:for] year, month, day = date.split(",") select year, from: "#{base_id}_1i" select month, from: "#{base_id}_2i" select day, from: "#{base_id}_3i" end end
Version data entries
158 entries across 158 versions & 1 rubygems