Skip to content Skip to sidebar Skip to footer

Undefined Local Variable Or Method `start_test_server_in_background' For Main:object

I try develop automatic test on Android device. I use Calabash and Ruby on Rails, version 2.1.2 I execute command: calabash-android console aplikacja.apk -p tablet After this I ex

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:

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"