require File.expand_path("test_helper", File.dirname(__FILE__)) require 'test/app_test_methods' module UpdateTestMethods include RubotoTest include AppTestMethods def setup(with_psych = false) generate_app(:with_psych => with_psych, :update => true) end def teardown cleanup_app end def test_properties_and_ant_file_has_no_duplicates Dir.chdir APP_DIR do # FIXME(uwe): Cleanup when we stop support Android SDK <= 13 prop_file = %w{test/ant.properties test/build.properties}.find{|f| File.exists?(f)} # FIXME end assert File.readlines(prop_file).grep(/\w/).uniq!.nil?, "Duplicate lines in #{prop_file}" assert_equal 1, File.readlines('test/build.xml').grep(//).size, 'Duplicate macro in build.xml' end end def test_icons_are_untouched Dir.chdir APP_DIR do assert_equal 4100, File.size('res/drawable-hdpi/icon.png') end end end