Created
July 12, 2012 15:07
-
-
Save lukeredpath/3098714 to your computer and use it in GitHub Desktop.
Frank without Cucumber
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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