require File.expand_path('test_helper', File.dirname(__FILE__)) require 'bigdecimal' require 'test/app_test_methods' class GitBasedGemTest < Test::Unit::TestCase def setup generate_app Dir.chdir APP_DIR do File.open('Gemfile.apk', 'w') do |f| f << "source 'http://rubygems.org/'\n\n" f << "gem 'uri_shortener', :git => 'https://github.com/Nyangawa/UriShortener.git'" end end end def teardown cleanup_app end def test_uri_shortener Dir.chdir APP_DIR do File.open('src/ruboto_test_app_activity.rb', 'w') { |f| f << < :vertical, :gravity => :center do text_view :id => 42, :text => title, :text_size => 48.0, :gravity => :center end end end EOF File.open('test/src/ruboto_test_app_activity_test.rb', 'w') { |f| f << < 60) sleep 1 end assert @text_view end test("activity starts") do |activity| assert_equal 'uri_shortener loaded OK!', @text_view.text.to_s end EOF end run_app_tests end end