Skip to content

Instantly share code, notes, and snippets.

@lukeredpath
Created July 12, 2012 15:07
Show Gist options
  • Select an option

  • Save lukeredpath/3098714 to your computer and use it in GitHub Desktop.

Select an option

Save lukeredpath/3098714 to your computer and use it in GitHub Desktop.
Frank without Cucumber
require File.join(File.dirname(__FILE__), *%w[spec_helper])
class ApplicationRunner
include Frank::Cucumber::FrankHelper
def initialize(app_path)
@app_path = app_path
end
def run
@simulator = SimLauncher::DirectClient.for_iphone_app(@app_path)
@simulator.launch
wait_for_frank_to_come_up
end
def running?
frankly_ping
end
end
describe ApplicationRunner do
before do
@application = ApplicationRunner.new(APP_BUNDLE_PATH)
end
it 'can launch the app' do
@application.run
@application.should be_running
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment