Sha256: a28e64fafec91b06ea8ba0ac76b4de99a3e39b9dc2c63b33100b10b6d6cbce03
Contents?: true
Size: 976 Bytes
Versions: 5
Compression:
Stored size: 976 Bytes
Contents
require File.expand_path('test_helper', File.dirname(__FILE__)) class RubotoActivityTest < Minitest::Test def setup generate_app end def teardown cleanup_app end def test_ruboto_activity_as_entry_point check_platform_installation Dir.chdir APP_DIR do #java_source_file = 'src/org/ruboto/test_app/RubotoTestAppActivity.java' #source = File.read(java_source_file) #assert source.gsub!(/extends org.ruboto.EntryPointActivity/, 'extends org.ruboto.RubotoActivity') #File.open(java_source_file, 'w') { |f| f << source } system 'rake install' #system "adb shell am start -a android.intent.action.MAIN -n org.ruboto.example_test_app/.RubotoActivity" system "adb shell am start -n org.ruboto.test_app/org.ruboto.RubotoActivity -e ClassName RubotoTestAppActivity" assert_equal 0, $?, "tests failed with return code #$?" # FIXME(uwe): Assert that the activity was started correctly. end end end
Version data entries
5 entries across 5 versions & 1 rubygems