Sha256: 7c7519886d88637ab69f293a704d975616cbce843c6602390cf4f1d89059ffb4

Contents?: true

Size: 1.41 KB

Versions: 14

Compression:

Stored size: 1.41 KB

Contents

Given /^I am looking at the progress of a seek bar$/ do
  on(MainMenuScreen).views
  on(ViewsMenuScreen).seek_bar
end

When /^I set the progress indicated by "(.*?)" to "(.*?)"$/ do |how, value|
  on(SeekBarScreen) do |screen|
    screen.send "progress_#{how}=", value.to_i
  end
end

Then /^the retrieved progress indicated by "(.*?)" should be "(.*?)"$/ do |how, value|
  on(SeekBarScreen) do |screen|
    screen.send("progress_#{how}").should eq(value.to_i)
  end
end

When /^I set the secondary progress indicated by "(.*?)" to "(.*?)"$/ do |how, value|
  on(SeekBarScreen) do |screen|
    screen.send "progress_#{how}_secondary=", value.to_i
  end
end

When /^the retrieved secondary progress indicated by "(.*?)" should be "(.*?)"$/ do |how, value|
  on(SeekBarScreen) do |screen|
    screen.send("progress_#{how}_secondary").should eq(value.to_i)
  end
end

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

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
gametel-0.8 features/step_definitions/progress_steps.rb
gametel-0.7 features/step_definitions/progress_steps.rb
gametel-0.6 features/step_definitions/progress_steps.rb
gametel-0.5.9.3 features/step_definitions/progress_steps.rb
gametel-0.5.9.2 features/step_definitions/progress_steps.rb
gametel-0.5.9.1 features/step_definitions/progress_steps.rb
gametel-0.5.9 features/step_definitions/progress_steps.rb
gametel-0.5.8.1 features/step_definitions/progress_steps.rb
gametel-0.5.8 features/step_definitions/progress_steps.rb
gametel-0.5.7 features/step_definitions/progress_steps.rb
gametel-0.5.6 features/step_definitions/progress_steps.rb
gametel-0.5.5 features/step_definitions/progress_steps.rb
gametel-0.5.4 features/step_definitions/progress_steps.rb
gametel-0.5.3 features/step_definitions/progress_steps.rb