features/step_definitions/progress_steps.rb in gametel-0.5.2 vs features/step_definitions/progress_steps.rb in gametel-0.5.3

- old
+ new

@@ -30,5 +30,15 @@ Then /^the retrieved progress max indicated by "(.*?)" should be "(.*?)"$/ do |how, value| on(SeekBarScreen) do |screen| screen.send("progress_#{how}_max").should eq(value.to_i) end end + +Then /^the progress bar indicated by "(.*?)" can determine the following properties:$/ do |how, properties| + on(SeekBarScreen) do |screen| + view = screen.send("progress_#{how}_view") + properties.hashes.each do |property| + result = view.send("#{property["property"]}?") + result.to_s.should eq(property["value"]), "for field #{property["property"]}" + end + end +end