Sha256: 5bb9540173bc7912911c87f4d5ae74e0440aa48d83c44ab1a48243ef023df3b8
Contents?: true
Size: 1.06 KB
Versions: 9
Compression:
Stored size: 1.06 KB
Contents
if ENV['SKIP_RUBOTO_UPDATE_TEST'] puts 'Detected SKIP_RUBOTO_UPDATE_TEST environment variable. Skipping Ruboto update test.' else require File.expand_path('updated_example_test_methods', File.dirname(__FILE__)) require File.expand_path('update_test_methods', File.dirname(__FILE__)) # TODO(uwe): Delete obsolete examples when we stop supporting updating from them. Dir.chdir "#{RubotoTest::PROJECT_DIR}/examples/" do Dir["#{RubotoTest::APP_NAME}_*_tools_r*.tgz"].each do |f| next unless f =~ /^#{RubotoTest::APP_NAME}_(.*)_tools_r(.*)\.tgz$/ ruboto_version = $1 tools_version = $2 self.class.class_eval <<EOF class RubotoUpdatedExample#{ruboto_version.gsub('.', '_')}Tools#{tools_version}Test < Test::Unit::TestCase include UpdatedExampleTestMethods def setup super('#{ruboto_version}', '#{tools_version}') end end class RubotoUpdate#{ruboto_version.gsub('.', '_')}Tools#{tools_version}Test < Test::Unit::TestCase include UpdateTestMethods def setup super('#{ruboto_version}', '#{tools_version}') end end EOF end end end
Version data entries
9 entries across 9 versions & 1 rubygems