Sha256: f9c0bf0fd3a328747f4a88c1a16cfadd1e4096236887df939f1d7f5ee67bdb0d

Contents?: true

Size: 1.1 KB

Versions: 8

Compression:

Stored size: 1.1 KB

Contents

activity org.ruboto.test_app.RssActivity

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

test('fetch rss feed', ui: false) do |activity|
  start = Time.now
  loop do
    break if activity.findViewById(42).text.to_s == 'List updated'
    break if Time.now - start > 90
    sleep 0.5
  end
  assert_equal 'List updated', activity.findViewById(42).text.to_s
  # assert_equal [],activity.findViewById(43).adapter.list.to_a
  assert_equal [
          "RSS Solutions for Restaurants",
          "RSS Solutions for Schools and Colleges",
          "RSS Solutions for Computer Service Companies",
          "RSS Solutions for Governments",
          "RSS Solutions for Politicians",
          "RSS Solutions for Meteorologists",
          "RSS Solutions for Realtors & Real Estate Firms",
          "RSS Solutions for Banks / Mortgage Companies",
          "RSS Solutions for Law Enforcement"
      ],
      activity.list
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
ruboto-1.6.1 test/activity/rss_activity_test.rb
ruboto-1.6.0 test/activity/rss_activity_test.rb
ruboto-1.5.0 test/activity/rss_activity_test.rb
ruboto-1.4.1 test/activity/rss_activity_test.rb
ruboto-1.4.0 test/activity/rss_activity_test.rb
ruboto-1.3.1 test/activity/rss_activity_test.rb
ruboto-1.3.0 test/activity/rss_activity_test.rb
ruboto-1.2.0 test/activity/rss_activity_test.rb