test/broadcast_receiver_test.rb in ruboto-0.10.0.rc.0 vs test/broadcast_receiver_test.rb in ruboto-0.10.0.rc.1

- old
+ new

@@ -11,11 +11,11 @@ def teardown cleanup_app end def test_generated_broadcast_receiver - action_name ='org.ruboto.example.click_broadcast' + action_name = 'org.ruboto.example.click_broadcast' message = 'Broadcast received!' Dir.chdir APP_DIR do activity_filename = 'src/ruboto_test_app_activity.rb' activity_content = File.read(activity_filename) @@ -55,10 +55,10 @@ assert receiver_content.sub!(/ def on_receive\(context, intent\)\n.*?^ end\n/m, <<EOF) def on_receive(context, intent) Log.d "RUBOTO TEST", "Changing UI text" context.run_on_ui_thread{$broadcast_test_activity.find_view_by_id(42).text = '#{message}'} Log.d "RUBOTO TEST", "UI text changed OK!" - rescue + rescue Exception Log.e "RUBOTO TEST", "Exception changing UI text: \#{$!.message}" Log.e "RUBOTO TEST", $!.message Log.e "RUBOTO TEST", $!.backtrace.join("\\n") end EOF