Sha256: 844a5771760e5ac984c558b5dc342fedf0ae2803b8ac34101a7f72f0e9b72a78
Contents?: true
Size: 855 Bytes
Versions: 4
Compression:
Stored size: 855 Bytes
Contents
require File.expand_path("test_helper", File.dirname(__FILE__)) require 'test/app_test_methods' class RubotoGenTest < Test::Unit::TestCase include AppTestMethods def setup generate_app end def teardown cleanup_app end def test_icons_are_updated Dir.chdir APP_DIR do assert_equal 4032, File.size('res/drawable-hdpi/icon.png') end end def test_gen_class_activity_with_lowercase_should_fail Dir.chdir APP_DIR do system "#{RUBOTO_CMD} gen class activity --name VeryNewActivity" assert_equal 1, $?.exitstatus assert !File.exists?('src/org/ruboto/test_app/VeryNewActivity.java') assert !File.exists?('src/very_new_activity.rb') assert !File.exists?('test/assets/scripts/very_new_activity_test.rb') assert File.read('AndroidManifest.xml') !~ /VeryNewActivity/ end end end
Version data entries
4 entries across 4 versions & 2 rubygems
Version | Path |
---|---|
ruboto-0.5.2 | test/ruboto_gen_test.rb |
ruboto-core-0.5.1 | test/ruboto_gen_test.rb |
ruboto-core-0.4.1.rc.4 | test/ruboto_gen_test.rb |
ruboto-core-0.4.0 | test/ruboto_gen_test.rb |