Sha256: 47b2a5dd4a47d6d4b32e7896c1431c76a6d47edfc2258018f6ae58dd58842c12

Contents?: true

Size: 899 Bytes

Versions: 2

Compression:

Stored size: 899 Bytes

Contents

require File.expand_path("test_helper", File.dirname(__FILE__))
require 'test/app_test_methods'

module UpdateTestMethods
  include RubotoTest
  include AppTestMethods

  def setup
    generate_app :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(/<macrodef name="run-tests-helper">/).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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ruboto-0.5.4 test/update_test_methods.rb
ruboto-0.5.3 test/update_test_methods.rb