edit: $/Dev10/feature/vs_langs01_s/Merlin/Main/Languages/Ruby/Scripts/irtests.rb;C1237359 File: irtests.rb =================================================================== --- $/Dev10/feature/vs_langs01_s/Merlin/Main/Languages/Ruby/Scripts/irtests.rb;C1237359 (server) 12/7/2009 2:29 PM +++ Shelved Change: $/Dev10/feature/vs_langs01_s/Merlin/Main/Languages/Ruby/Scripts/irtests.rb;utr @@ -26,12 +26,13 @@ :RubySpec_A => "#{mspec_base} :lang :cli :netinterop :cominterop :thread, :netcli", :RubySpec_B => "#{mspec_base} :core1 :lib1", :RubySpec_C => "#{mspec_base} :core2 :lib2", - :RubyGems => "#{ir} #{@root}\\Languages\\Ruby\\Tests\\Scripts\\RubyGemsTests.rb", - :Rake => "#{ir} #{@root}\\Languages\\Ruby\\Tests\\Scripts\\RakeTests.rb", + :RubyGems => "#{@root}\\Languages\\Ruby\\Tests\\Scripts\\utr.bat gem", + :Rake => "#{@root}\\Languages\\Ruby\\Tests\\Scripts\\utr.bat rake", :Yaml => "#{ir} #{@root}\\..\\External.LCA_RESTRICTED\\Languages\\IronRuby\\yaml\\YamlTest\\yaml_test_suite.rb", :Tutorial => "#{ir} -I#{@root}\\Languages\\Ruby\\Samples\\Tutorial #{@root}\\Languages\\Ruby\\Samples\\Tutorial\\test\\test_console.rb", - :ActionPack => "#{ir} #{@root}\\Languages\\Ruby\\Tests\\Scripts\\ActionPackTests.rb", - :ActiveSupport => "#{ir} #{@root}\\Languages\\Ruby\\Tests\\Scripts\\ActiveSupportTests.rb" + :ActionPack => "#{@root}\\Languages\\Ruby\\Tests\\Scripts\\utr.bat action_pack", + :ActiveSupport => "#{@root}\\Languages\\Ruby\\Tests\\Scripts\\utr.bat active_support", + :ActiveRecord => "#{@root}\\Languages\\Ruby\\Tests\\Scripts\\utr.bat active_record" } @start = Time.now end =================================================================== add: $/Dev10/feature/vs_langs01_s/Merlin/Main/Languages/Ruby/Tests/Scripts/action_pack_tests.rb File: action_pack_tests.rb =================================================================== --- [no source file] +++ Shelved Change: $/Dev10/feature/vs_langs01_s/Merlin/Main/Languages/Ruby/Tests/Scripts/action_pack_tests.rb;utr @@ -1,0 +1,327 @@ +class UnitTestSetup + def initialize + @name = "ActionPack" + super + end + + def require_files + require 'rubygems' + gem 'actionpack', "= 2.3.3" + require 'action_pack/version' + end + + def gather_files + @root_dir = File.expand_path '..\External.LCA_RESTRICTED\Languages\IronRuby\RailsTests-2.3.3\actionpack', ENV['MERLIN_ROOT'] + $LOAD_PATH << @root_dir + '/test' + @all_test_files = Dir.glob("#{@root_dir}/test/[cft]*/**/*_test.rb").sort + end + + def sanity + # Do some sanity checks + sanity_size(80) + abort("Did not find some expected files...") unless File.exist?(@root_dir + "/test/controller/action_pack_assertions_test.rb") + sanity_version('2.3.3', ActionPack::VERSION::STRING) + end + + def disable_tests + disable LastModifiedRenderTest, + # <"Mon, 07 Sep 2009 00:00:00 GMT"> expected but was + # <"Sun, 06 Sep 2009 23:59:59 GMT">. + :test_request_not_modified, + # Expected response to be a <:not_modified>, but was <200> + :test_request_with_bang_obeys_last_modified, + # <"Sun, 06 Sep 2009 23:59:59 GMT"> expected but was + # <"Mon, 07 Sep 2009 00:00:00 GMT">. + :test_request_with_bang_gets_last_modified + + disable ActionCacheTest, + # is not true. + :test_action_cache_with_custom_cache_path, + # is not true. + :test_action_cache_with_custom_cache_path_in_block, + # is not true. + :test_action_cache_with_layout, + # is not true. + :test_action_cache_with_layout_and_layout_cache_false, + # not all expectations were satisfied + # unsatisfied expectations: + # - expected exactly once, not yet invoked: #.write_fragment('hostname.com/action_caching_test', '12345.0', {:expires_in => 3600}) + # - expected exactly once, not yet invoked: #.read_fragment('hostname.com/action_caching_test', {:expires_in => 3600}) + # satisfied expectation + :test_action_cache_with_store_options, + # <"1252314416.2022"> expected but was + # <"1252314416.3114">. + :test_cache_expiration, + # <"1252314416.96659"> expected but was + # <"1252314417.29419">. + :test_cache_is_scoped_by_subdomain, + # <"application/xml"> expected but was + # <"text/html">. + :test_correct_content_type_is_returned_for_cache_hit, + # <"application/xml"> expected but was + # <"text/html">. + :test_correct_content_type_is_returned_for_cache_hit_on_action_with_string_key, + # <"application/xml"> expected but was + # <"text/html">. + :test_correct_content_type_is_returned_for_cache_hit_on_action_with_string_key_from_proc, + # is not true. + :test_simple_action_cache, + # is not true. + :test_xml_version_of_resource_is_treated_as_different_cache + + disable AssertSelectTest, + # NameError: uninitialized constant Iconv::IllegalSequence + :test_assert_select_email, + # expected but was + # <"\343\203\201\343\202\261\343\203\203\343\203\210">. + # is not true. + :test_assert_select_rjs_with_unicode + + disable AssetTagHelperTest, + # <"\n\n\n\n\n"> expected to be == to + # <"">. + :test_caching_javascript_include_tag_when_caching_on, + # <""> expected to be == to + # <"">. + :test_caching_javascript_include_tag_when_caching_on_and_using_subdirectory, + # <""> expected to be == to + # <"">. + :test_caching_javascript_include_tag_when_caching_on_with_2_argument_object_asset_host, + # <""> expected to be == to + # <"">. + :test_caching_javascript_include_tag_when_caching_on_with_2_argument_proc_asset_host, + # <""> expected to be == to + # <"">. + :test_caching_javascript_include_tag_when_caching_on_with_proc_asset_host, + # <""> expected to be == to + # <"">. + :test_caching_javascript_include_tag_with_all_and_recursive_puts_defaults_at_the_start_of_the_file, + # <""> expected to be == to + # <"">. + :test_caching_javascript_include_tag_with_all_puts_defaults_at_the_start_of_the_file, + # <""> expected to be == to + # <"">. + :test_caching_javascript_include_tag_with_relative_url_root, + # <"\n\n"> expected to be == to + # <""> expected to be == to + # <"">. + :test_caching_stylesheet_link_tag_when_caching_on, + # <""> expected to be == to + # <"">. + :test_caching_stylesheet_link_tag_when_caching_on_with_proc_asset_host, + # <""> expected to be == to + # <"">. + :test_caching_stylesheet_link_tag_with_relative_url_root, + # <""> expected to be == to + # <"">. + :test_concat_stylesheet_link_tag_when_caching_off, + # <"\n\n\n\n\n\n\n\n\n"> expected t + :test_javascript_include_tag_with_blank_asset_id, + # <"\"Rails\""> expected but was + # <"\"Rails\"">. + :test_preset_empty_asset_id, + # <"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"> expected to be == to - # <"">. - def test_caching_javascript_include_tag_when_caching_on() end - - # <""> expected to be == to - # <"">. - def test_caching_javascript_include_tag_when_caching_on_and_using_subdirectory() end - - # <""> expected to be == to - # <"">. - def test_caching_javascript_include_tag_when_caching_on_with_2_argument_object_asset_host() end - - # <""> expected to be == to - # <"">. - def test_caching_javascript_include_tag_when_caching_on_with_2_argument_proc_asset_host() end - - # <""> expected to be == to - # <"">. - def test_caching_javascript_include_tag_when_caching_on_with_proc_asset_host() end - - # <""> expected to be == to - # <"">. - def test_caching_javascript_include_tag_with_all_and_recursive_puts_defaults_at_the_start_of_the_file() end - - # <""> expected to be == to - # <"">. - def test_caching_javascript_include_tag_with_all_puts_defaults_at_the_start_of_the_file() end - - # <""> expected to be == to - # <"">. - def test_caching_javascript_include_tag_with_relative_url_root() end - - # <"\n\n"> expected to be == to - # <""> expected to be == to - # <"">. - def test_caching_stylesheet_link_tag_when_caching_on() end - - # <""> expected to be == to - # <"">. - def test_caching_stylesheet_link_tag_when_caching_on_with_proc_asset_host() end - - # <""> expected to be == to - # <"">. - def test_caching_stylesheet_link_tag_with_relative_url_root() end - - # <""> expected to be == to - # <"">. - def test_concat_stylesheet_link_tag_when_caching_off() end - - # <"\n\n\n\n\n\n\n\n\n"> expected t - def test_javascript_include_tag_with_blank_asset_id() end - - # <"\"Rails\""> expected but was - # <"\"Rails\"">. - def test_preset_empty_asset_id() end - - # <"\n\n\n\n\n\n\n\n\n\n