require File.expand_path('test_helper', File.dirname(__FILE__)) class SplashTest < Minitest::Test def setup generate_app end def teardown cleanup_app end def test_splash Dir.chdir APP_DIR do File.open('res/layout/splash.xml', 'w'){|f| f << < EOF FileUtils.cp '../../icons/ruboto-logo_512x512.png', 'res/drawable/logo.png' end run_app_tests end end