Skip to content

Instantly share code, notes, and snippets.

@jmoody
Created March 9, 2014 17:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jmoody/9451186 to your computer and use it in GitHub Desktop.
Save jmoody/9451186 to your computer and use it in GitHub Desktop.
cucumber Before hook for forcing iPhone app emulated on an iPad
Before do |scenario|
@calabash_launcher = Calabash::Cucumber::Launcher.new
unless @calabash_launcher.calabash_no_launch?
@calabash_launcher.relaunch
@calabash_launcher.calabash_notify(self)
if ios7?
ensure_ipad_emulation_1x
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment