bin/calabash-android-console.rb in testautoa-0.4.0 vs bin/calabash-android-console.rb in testautoa-0.4.1

- old
+ new

@@ -3,13 +3,11 @@ unless ENV["TEST_SERVER_PORT"] ENV["TEST_SERVER_PORT"] = "34777" end - unless ENV["IRBRC"] - ENV["IRBRC"] = File.join(File.dirname(__FILE__), '..', 'irbrc') - end + ENV["IRBRC"] = File.join(File.dirname(__FILE__), '..', 'irbrc') unless ENV["PACKAGE_NAME"] ENV["PACKAGE_NAME"] = package_name(app_path) end @@ -23,7 +21,9 @@ unless ENV["TEST_APP_PATH"] ENV["TEST_APP_PATH"] = test_server_path end - system "irb" + build_test_server_if_needed(app_path) + + system "#{RbConfig.ruby} -S irb" end \ No newline at end of file