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

Version Path
renalware-core-2.0.127 spec/support/select_date_spec_helper.rb
renalware-core-2.0.126 spec/support/select_date_spec_helper.rb
renalware-core-2.0.125 spec/support/select_date_spec_helper.rb
renalware-core-2.0.124 spec/support/select_date_spec_helper.rb
renalware-core-2.0.123 spec/support/select_date_spec_helper.rb
renalware-core-2.0.121 spec/support/select_date_spec_helper.rb
renalware-core-2.0.120 spec/support/select_date_spec_helper.rb
renalware-core-2.0.119 spec/support/select_date_spec_helper.rb
renalware-core-2.0.118 spec/support/select_date_spec_helper.rb
renalware-core-2.0.117 spec/support/select_date_spec_helper.rb
renalware-core-2.0.116 spec/support/select_date_spec_helper.rb
renalware-core-2.0.115 spec/support/select_date_spec_helper.rb
renalware-core-2.0.113 spec/support/select_date_spec_helper.rb
renalware-core-2.0.112 spec/support/select_date_spec_helper.rb
renalware-core-2.0.111 spec/support/select_date_spec_helper.rb
renalware-core-2.0.110 spec/support/select_date_spec_helper.rb
renalware-core-2.0.109 spec/support/select_date_spec_helper.rb
renalware-core-2.0.108 spec/support/select_date_spec_helper.rb
renalware-core-2.0.106 spec/support/select_date_spec_helper.rb
renalware-core-2.0.105 spec/support/select_date_spec_helper.rb