Sha256: b63a5b7e6be37677bfcda7a073f598db6cd20ce202aedb668edbb593ce7e0f36
Contents?: true
Size: 644 Bytes
Versions: 35
Compression:
Stored size: 644 Bytes
Contents
def calabash_console(app_path = nil) test_server_path = test_server_path(app_path) path = ENV['CALABASH_IRBRC'] unless path if File.exist?('.irbrc') path = File.expand_path('.irbrc') end end unless path path = File.expand_path(File.join(File.dirname(__FILE__), '..', 'irbrc')) end ENV['IRBRC'] = path unless ENV['APP_PATH'] ENV['APP_PATH'] = app_path end unless ENV['TEST_APP_PATH'] ENV['TEST_APP_PATH'] = test_server_path end build_test_server_if_needed(app_path) puts 'Starting calabash-android console...' puts "Loading #{ENV['IRBRC']}" puts 'Running irb...' exec('irb') end
Version data entries
35 entries across 35 versions & 1 rubygems