Undefined Local Variable Or Method `start_test_server_in_background' For Main:object
Solution 1:
First thing to try — execute unset IRBRC
in console and only after launch Calabash.
Second one is to use Ruby version below 2.0 — e.g. 1.9.3.
There are several issues when running with Ruby 2.0. Few proofs:
- https://github.com/calabash/calabash-android/issues/342
- Install Calabash-Android causes error on OS X Mavericks
I've seen the same behavior myself, version downgrade/upgrade helps. But it looks like it relates to calabash-android only.
Solution 2:
This is because rvm set IRBRC variable to ruby console . it works if you unset the IRBRC value before opening calabash-console
Please do the following steps :
$unset IRBRC
$calabash-android console aplikacja.apk -p tablet
$start_test_server_in_background
post your comment below
Solution 3:
I suspect the problem is this:
https://github.com/calabash/calabash-android/pull/383
I think you can do this to work around this problem.
$ IRBRC= calabash-android console aplikacja.apk -p tablet
Post a Comment for "Undefined Local Variable Or Method `start_test_server_in_background' For Main:object"