lib/ilesspainfulclient-cucumber/lesspainful_steps.rb in ilesspainfulclient-cucumber-0.0.3 vs lib/ilesspainfulclient-cucumber/lesspainful_steps.rb in ilesspainfulclient-cucumber-0.0.4

- old
+ new

@@ -196,39 +196,39 @@ ### Playback ### Then /^I playback recording "([^"]*)"$/ do |filename| - playback("#{filename}_#{ENV['DEVICE']}") + playback(filename) sleep(STEP_PAUSE) end Then /^I playback recording "([^"]*) on "([^"]*)"$/ do |filename, name| - playback("#{filename}_#{ENV['DEVICE']}", {:query => "view marked:'#{name}'"}) + playback(filename, {:query => "view marked:'#{name}'"}) sleep(STEP_PAUSE) end Then /^I playback recording "([^"]*) on "([^"]*)" with offset (\d+),(\d+)$/ do |filename, name, x, y| x = x.to_i y = y.to_i - playback("#{filename}_#{ENV['DEVICE']}", {:query => "view marked:'#{name}'", :offset => {:x => x, :y => y}}) + playback(filename, {:query => "view marked:'#{name}'", :offset => {:x => x, :y => y}}) sleep(STEP_PAUSE) end Then /^I reverse playback recording "([^"]*)"$/ do |filename| - playback("#{filename}_#{ENV['DEVICE']}", {:reverse => true}) + playback(filename, {:reverse => true}) sleep(STEP_PAUSE) end Then /^I reverse playback recording "([^"]*) on "([^"]*)"$/ do |filename, name| - playback("#{filename}_#{ENV['DEVICE']}", {:query => "view marked:'#{name}'",:reverse => true}) + playback(filename, {:query => "view marked:'#{name}'",:reverse => true}) sleep(STEP_PAUSE) end Then /^I reverse playback recording "([^"]*) on "([^"]*)" with offset (\d+),(\d+)$/ do |filename, name, x, y| x = x.to_i y = y.to_i - playback("#{filename}_#{ENV['DEVICE']}", {:query => "view marked:'#{name}'", :offset => {:x => x, :y => y},:reverse => true}) + playback(filename, {:query => "view marked:'#{name}'", :offset => {:x => x, :y => y},:reverse => true}) sleep(STEP_PAUSE) end ### Device orientation ###