Sha256: 8aa09c737e741649e8213551ff58351c67709b59eefd1576074455d9db01b4d4

Contents?: true

Size: 354 Bytes

Versions: 17

Compression:

Stored size: 354 Bytes

Contents

class CheckIn::ComplexInput

  def initialize(label, value, within)
    @label = label
    @value = value
    @within = within || Capybara.current_session
  end

  def call
    @value.split(/\s*:\s*/).each.with_index do |value, index|
      input_locator = "#{label}[#{index}]"

      CheckIn::Input.new(input_locator, value, @within)
    end
  end

end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
pickles-0.2.4 lib/cucumber/pickles/steps/check_in/complex_input.rb
pickles-0.2.3 lib/cucumber/pickles/steps/check_in/complex_input.rb
pickles-0.2.2 lib/cucumber/pickles/steps/check_in/complex_input.rb
pickles-0.2.1 lib/cucumber/pickles/steps/check_in/complex_input.rb
pickles-0.2.0 lib/cucumber/pickles/steps/check_in/complex_input.rb
pickles-0.1.12 lib/cucumber/pickles/steps/check_in/complex_input.rb
pickles-0.1.10 lib/cucumber/pickles/steps/check_in/complex_input.rb
pickles-0.1.9 lib/cucumber/pickles/steps/check_in/complex_input.rb
pickles-0.1.8 lib/cucumber/pickles/steps/check_in/complex_input.rb
pickles-0.1.7 lib/cucumber/pickles/steps/check_in/complex_input.rb
pickles-0.1.6 lib/cucumber/pickles/steps/check_in/complex_input.rb
pickles-0.1.5 lib/cucumber/pickles/steps/check_in/complex_input.rb
pickles-0.1.4 lib/cucumber/pickles/steps/check_in/complex_input.rb
pickles-0.1.3 lib/cucumber/pickles/steps/check_in/complex_input.rb
pickles-0.1.2 lib/cucumber/pickles/steps/check_in/complex_input.rb
pickles-0.1.1 lib/cucumber/pickles/steps/check_in/complex_input.rb
pickles-0.1.0 lib/cucumber/pickles/steps/check_in/complex_input.rb