lib/icuke/cucumber.rb in iCuke-0.6.2 vs lib/icuke/cucumber.rb in iCuke-0.6.3
- old
+ new
@@ -13,17 +13,26 @@
def initialize
@simulator = ICuke::Simulator.new
end
def launch(application, options = {})
- @simulator.launch(application, options)
+ process = ICuke::Simulator::Process.new(application, options)
+ @simulator.launch(process)
end
def quit
@simulator.quit
end
+ def suspend
+ @simulator.suspend
+ end
+
+ def resume
+ @simulator.resume
+ end
+
def screen
@screen ||= Screen.new(response)
end
def response
@@ -239,9 +248,17 @@
if text
scroll_to(text, :direction => direction.to_sym)
else
scroll(direction.to_sym)
end
+end
+
+When /^I suspend the application/ do
+ suspend
+end
+
+When /^I resume the application/ do
+ resume
end
Then /^I put the phone into recording mode$/ do
record
end