test/app_test_methods.rb in ruboto-0.8.1 vs test/app_test_methods.rb in ruboto-0.9.0.rc.0

- old
+ new

@@ -37,9 +37,13 @@ end def run_activity_tests(activity_dir) Dir[File.expand_path("#{activity_dir}/*_test.rb", File.dirname(__FILE__))].each do |test_src| snake_name = test_src.chomp('_test.rb') + + # FIXME(uwe): Remove when we stop testing JRuby < 1.7.0.rc1 + next if snake_name =~ /subclass/ && (RUBOTO_PLATFORM == 'CURRENT' || JRUBY_JARS_VERSION < Gem::Version.new('1.7.0.rc1')) + activity_name = File.basename(snake_name).split('_').map { |s| "#{s[0..0].upcase}#{s[1..-1]}" }.join Dir.chdir APP_DIR do system "#{RUBOTO_CMD} gen class Activity --name #{activity_name}" FileUtils.cp "#{snake_name}.rb", "src/" FileUtils.cp test_src, "test/src/"