Sha256: a22a085beb9138f1e81f35983d28106728f5084ffcae0f87e676d29b1ac3c9c0
Contents?: true
Size: 410 Bytes
Versions: 3
Compression:
Stored size: 410 Bytes
Contents
class CheckIn::Select include RSpec::Expectations include RSpec::Matchers def initialize(label, value, within) @label = label @value = value @within = within || Capybara.current_session end def call locator, wait = Locator::Wait.execute(@label) options = { selected: @value } options[:wait] = wait if wait expect(@within).to have_select(locator, options) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
pickles-0.2.4 | lib/cucumber/pickles/steps/check_in/select.rb |
pickles-0.2.3 | lib/cucumber/pickles/steps/check_in/select.rb |
pickles-0.2.2 | lib/cucumber/pickles/steps/check_in/select.rb |