Sha256: 4c5be3d77f1cc17aff80af34f6f53eb161040d1f05d2951f5116998dfa5d1658
Contents?: true
Size: 736 Bytes
Versions: 9
Compression:
Stored size: 736 Bytes
Contents
When /^I select index "(.*?)" from the "(.*?)" combo box$/ do |index, name| on(MainScreen).send "#{name.to_field}=", index.to_i end When /^I select the value "(.*?)" from the "(.*?)" combo box$/ do |index, name| on(MainScreen).send "#{name.to_field}=", index end Then /^the "(.*?)" option should be selected in the "(.*?)" combo box$/ do |value, name| on(MainScreen).send("#{name.to_field}").should eq(value) end When /^I look at the options for the "(.*?)" combo box"$/ do |name| @options = on(MainScreen).send("#{name.to_field}_options") end Then /^I should see the following options:$/ do |table| expected_options = table.hashes.map {|row| row["Option"] } @options.should eq(expected_options) end
Version data entries
9 entries across 9 versions & 1 rubygems