Sha256: 69a9ba17d9cac514eebba4d88e2755ea7c544c1730c2bca59fd9f1b4bd8bca73

Contents?: true

Size: 439 Bytes

Versions: 37

Compression:

Stored size: 439 Bytes

Contents

activity org.ruboto.test_app.PsychActivity

setup do |activity|
  start = Time.now
  loop do
    @text_view = activity.findViewById(42)
    break if @text_view || (Time.now - start > 60)
    sleep 1
  end
  assert @text_view
end

test('psych_encode_decode') do |activity|
  assert_equal 'foo', activity.find_view_by_id(42).text.to_s
  if RUBY_VERSION >= '1.9'
    assert_equal "--- foo\n", activity.find_view_by_id(43).text.to_s
  end
end

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
ruboto-1.6.1 test/activity/psych_activity_test.rb
ruboto-1.6.0 test/activity/psych_activity_test.rb
ruboto-1.5.0 test/activity/psych_activity_test.rb
ruboto-1.4.1 test/activity/psych_activity_test.rb
ruboto-1.4.0 test/activity/psych_activity_test.rb
ruboto-1.3.1 test/activity/psych_activity_test.rb
ruboto-1.3.0 test/activity/psych_activity_test.rb
ruboto-1.2.0 test/activity/psych_activity_test.rb
ruboto-1.1.2 test/activity/psych_activity_test.rb
ruboto-1.1.1 test/activity/psych_activity_test.rb
ruboto-1.1.0 test/activity/psych_activity_test.rb
ruboto-1.0.3 test/activity/psych_activity_test.rb
ruboto-1.0.2 test/activity/psych_activity_test.rb
ruboto-1.0.1 test/activity/psych_activity_test.rb
ruboto-1.0.0 test/activity/psych_activity_test.rb
ruboto-0.16.0 test/activity/psych_activity_test.rb
ruboto-0.15.0 test/activity/psych_activity_test.rb
ruboto-0.14.0 test/activity/psych_activity_test.rb
ruboto-0.13.0 test/activity/psych_activity_test.rb
ruboto-0.12.0 test/activity/psych_activity_test.rb