edit: $/Dev10/feature/vs_langs01_s/Merlin/External.LCA_RESTRICTED/Languages/IronRuby/mspec/rubyspec/library/bigdecimal/shared/to_int.rb;C1473028 File: to_int.rb =================================================================== --- $/Dev10/feature/vs_langs01_s/Merlin/External.LCA_RESTRICTED/Languages/IronRuby/mspec/rubyspec/library/bigdecimal/shared/to_int.rb;C1473028 (server) 2/7/2010 9:33 AM +++ Shelved Change: $/Dev10/feature/vs_langs01_s/Merlin/External.LCA_RESTRICTED/Languages/IronRuby/mspec/rubyspec/library/bigdecimal/shared/to_int.rb;ar @@ -8,11 +8,26 @@ end end - it "returns Integer or Bignum otherwise" do - BigDecimal("3E-20001").send(@method).should == 0 - BigDecimal("2E4000").send(@method).should == 2 * 10 ** 4000 + it "returns Integer or Bignum otherwise for single significant digit before the decimal point" do + BigDecimal("3E-1").send(@method).should == 0 + + BigDecimal("2E5").send(@method).should == 2 * (10 ** 5) + BigDecimal("2.1E5").send(@method).should == 2.1 * (10 ** 5) + BigDecimal("2").send(@method).should == 2 - BigDecimal("2E10").send(@method).should == 20000000000 + BigDecimal("2.1").send(@method).should == 2 + + BigDecimal("200.123").send(@method).should == 200 + BigDecimal("200.001").send(@method).should == 200 + BigDecimal("3.14159").send(@method).should == 3 end + + it "returns Integer or Bignum otherwise for multiple significant digit before the decimal point" do + BigDecimal("123").send(@method).should == 123 + BigDecimal("123.00456").send(@method).should == 123 + BigDecimal("123.456").send(@method).should == 123 + BigDecimal("12300.456").send(@method).should == 12300 + BigDecimal("12300.00456").send(@method).should == 12300 + end end =================================================================== edit: $/Dev10/feature/vs_langs01_s/Merlin/External.LCA_RESTRICTED/Languages/Ruby/ruby-1.8.6p368/lib/ruby/gems/1.8/gems/ironruby-dbi-0.1.0/lib/dbd/mssql/statement.rb;C1484364 File: statement.rb =================================================================== --- $/Dev10/feature/vs_langs01_s/Merlin/External.LCA_RESTRICTED/Languages/Ruby/ruby-1.8.6p368/lib/ruby/gems/1.8/gems/ironruby-dbi-0.1.0/lib/dbd/mssql/statement.rb;C1484364 (server) 2/7/2010 10:32 PM +++ Shelved Change: $/Dev10/feature/vs_langs01_s/Merlin/External.LCA_RESTRICTED/Languages/Ruby/ruby-1.8.6p368/lib/ruby/gems/1.8/gems/ironruby-dbi-0.1.0/lib/dbd/mssql/statement.rb;ar @@ -7,6 +7,8 @@ def initialize(statement, db) @connection = db.current_connection; @command = @connection.create_command + @previous_statement = @connection.instance_variable_get :@current_statement + @connection.instance_variable_set :@current_statement, self @statement = statement.to_s @command.command_text = @statement.to_clr_string @command.transaction = db.current_transaction if db.has_transaction? @@ -30,15 +32,17 @@ end def execute + @previous_statement.finish if @previous_statement + @current_index = 0 @rows = [] @schema = nil - @reader.close if @reader and not @reader.is_closed + finish @reader = @command.execute_reader schema unless SQL.query?(@statement.to_s) - finish + do_finish true end @reader.records_affected rescue RuntimeError, System::Data::SqlClient::SqlException => err @@ -46,6 +50,13 @@ end def fetch + if @reader and @reader.is_closed + if @pending_fetches + return @pending_fetches.shift + else + return nil + end + end res = nil if @reader.read res = read_row(@reader) @@ -56,19 +67,32 @@ end def finish - @reader.close if @reader and not @reader.is_closed + do_finish false + end + + def do_finish(check_pending_fetches) + if @reader and not @reader.is_closed + if check_pending_fetches + @pending_fetches = [] + while (res = fetch) != nil + @pending_fetches << res + end + else + @pending_fetches = nil + end + @reader.close + end rescue RuntimeError, System::Data::SqlClient::SqlException => err raise DBI::DatabaseError.new(err.message) end def cancel - @reader.close if @reader and not @reader.is_closed + finish @command.cancel end def schema - @schema ||= @reader.get_schema_table || System::Data::DataTable.new end =================================================================== edit: $/Dev10/feature/vs_langs01_s/Merlin/Main/Languages/Ruby/Libraries.LCA_RESTRICTED/BigDecimal/BigDecimal.cs;C1544575 File: BigDecimal.cs =================================================================== --- $/Dev10/feature/vs_langs01_s/Merlin/Main/Languages/Ruby/Libraries.LCA_RESTRICTED/BigDecimal/BigDecimal.cs;C1544575 (server) 2/7/2010 10:25 PM +++ Shelved Change: $/Dev10/feature/vs_langs01_s/Merlin/Main/Languages/Ruby/Libraries.LCA_RESTRICTED/BigDecimal/BigDecimal.cs;ar @@ -380,7 +380,7 @@ if (IsNegative(x)) { d = BigInteger.Negate(d); } - return ClrBigInteger.Multiply(d, BigInteger.Create(10).Power(i.Exponent - 1)); + return ClrBigInteger.Multiply(d, BigInteger.Create(10).Power(i.Exponent - digits.Length)); } else { return null; } =================================================================== edit: $/Dev10/feature/vs_langs01_s/Merlin/Main/Languages/Ruby/Scripts/irtests.rb;C1494375 File: irtests.rb =================================================================== --- $/Dev10/feature/vs_langs01_s/Merlin/Main/Languages/Ruby/Scripts/irtests.rb;C1494375 (server) 2/6/2010 2:54 PM +++ Shelved Change: $/Dev10/feature/vs_langs01_s/Merlin/Main/Languages/Ruby/Scripts/irtests.rb;ar @@ -44,7 +44,7 @@ :ActionMailer => "#{@root}\\Languages\\Ruby\\Tests\\Scripts\\utr.bat action_mailer", :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", + :ActiveRecord => "#{@root}\\Languages\\Ruby\\Tests\\Scripts\\utr.bat active_record", :ActiveResource => "#{@root}\\Languages\\Ruby\\Tests\\Scripts\\utr.bat active_resource" }) end =================================================================== edit: $/Dev10/feature/vs_langs01_s/Merlin/Main/Languages/Ruby/Tests/Scripts/generate_test-unit_tags.rb;C1484364 File: generate_test-unit_tags.rb =================================================================== --- $/Dev10/feature/vs_langs01_s/Merlin/Main/Languages/Ruby/Tests/Scripts/generate_test-unit_tags.rb;C1484364 (server) 2/5/2010 12:46 PM +++ Shelved Change: $/Dev10/feature/vs_langs01_s/Merlin/Main/Languages/Ruby/Tests/Scripts/generate_test-unit_tags.rb;ar @@ -5,6 +5,7 @@ # non-deterministic test failures will have to be tracked separately require 'test/unit/ui/console/testrunner' +require 'stringio' def test_method_name(fault) match = @@ -35,12 +36,45 @@ end end -class Test::Unit::UI::Console::TestRunner - def finished(elapsed_time) - nl +class TagGenerator + + class << self + attr :test_file, true # Name of the file with UnitTestSetup and disabled tags + attr :initial_tag_generation, true + end + + def self.finished(faults, elapsed_time) + return if faults.size == 0 + if TagGenerator.test_file + existing_content = nil + File.open(TagGenerator.test_file) do |file| + existing_content = file.read + end + + method_name = TagGenerator.initial_tag_generation ? "disable_tests" : "disable_unstable_tests" + pos = /(def #{method_name}(\(\))?)\n/ =~ existing_content + abort "Please add a placeholder for #{method_name}()" if not pos + pos = pos + $1.size + + new_tags = StringIO.new("", "a+") + TagGenerator.output_tags faults, new_tags + + File.open(TagGenerator.test_file, "w+") do |file| + file.write existing_content[0..pos] + file.write new_tags.string + file.write existing_content[pos..-1] + puts "Added #{faults.size} tags to #{TagGenerator.test_file}" + end + else + TagGenerator.output_tags faults, $stdout + end + end + + def self.output_tags(faults, output) + output.puts() faults_by_testcase_class = {} - @faults.each_with_index do |fault, index| + faults.each_with_index do |fault, index| testcase_class = test_method_name(fault)[1] faults_by_testcase_class[testcase_class] = [] if not faults_by_testcase_class.has_key? testcase_class faults_by_testcase_class[testcase_class] << fault @@ -49,7 +83,7 @@ faults_by_testcase_class.each_key do |testcase_class| testcase_faults = faults_by_testcase_class[testcase_class] ensure_single_fault_per_method_name testcase_faults - puts " disable #{testcase_class}, " + output.puts " disable #{testcase_class}, " testcase_faults.each do |fault| method_name = test_method_name(fault)[0] commented_message = fault.message[0..400] @@ -57,7 +91,7 @@ commented_message += "\n" + fault.exception.backtrace[0..2].join("\n") end commented_message = commented_message.gsub(/^(.*)$/, ' # \1') - puts commented_message + output.puts commented_message if fault == testcase_faults.last comma_separator = "" else @@ -68,13 +102,21 @@ else method_name = "#{method_name.dump}" end - puts " #{method_name}#{comma_separator}" + output.puts " #{method_name}#{comma_separator}" end - nl + output.puts() end end end +class Test::Unit::UI::Console::TestRunner + def finished(elapsed_time) + TagGenerator.finished(@faults, elapsed_time) + nl + output(@result, result_color) + end +end + if $0 == __FILE__ # Dummy example for testing require 'test/unit' =================================================================== edit: $/Dev10/feature/vs_langs01_s/Merlin/Main/Languages/Ruby/Tests/Scripts/utr.rb;C1484364 File: utr.rb =================================================================== --- $/Dev10/feature/vs_langs01_s/Merlin/Main/Languages/Ruby/Tests/Scripts/utr.rb;C1484364 (server) 2/5/2010 5:10 PM +++ Shelved Change: $/Dev10/feature/vs_langs01_s/Merlin/Main/Languages/Ruby/Tests/Scripts/utr.rb;ar @@ -1,5 +1,3 @@ -$: << File.join(File.dirname(__FILE__), "/utr") - class UnitTestRunner def self.ironruby? defined?(RUBY_ENGINE) and RUBY_ENGINE == "ironruby" @@ -34,13 +32,14 @@ remaining_args = parser.parse! abort "Please specify the test suite to use" if remaining_args.empty? - @lib = remaining_args.shift + test_suite = remaining_args.shift + @lib = File.expand_path("utr/#{test_suite}_tests.rb", File.dirname(__FILE__)) abort "Extra arguments: #{remaining_args}" if not remaining_args.empty? end def initialize(args) parse_options(args) - require "#{@lib}_tests" + require @lib @setup = UnitTestSetup.new end @@ -62,7 +61,9 @@ if @generate_tags @setup.disable_tests if @generate_incremental - require "generate_test-unit_tags" + require "generate_test-unit_tags.rb" + TagGenerator.test_file = @lib + TagGenerator.initial_tag_generation = !@generate_incremental else @setup.disable_tests unless @all end @@ -116,15 +117,15 @@ private def disable(klass, *methods) @disabled ||= 0 - @disabled += 1 + @disabled += methods.size klass.class_eval do methods.each do |method| undef_method method.to_sym rescue puts "Could not undef #{klass}##{method}" end - # If all the test methods have been removed, keep a single dummy method to keep test-unit happy. + # If all the test methods have been removed, remove the entire TestCase. # Otherwise, it complains saying "No tests were specified." if instance_methods(false).select { |m| m =~ /^test/ }.empty? - define_method(:test_dummy_utr) {} + Test::Unit::TestCase::DESCENDANTS.delete klass end end end =================================================================== edit: $/Dev10/feature/vs_langs01_s/Merlin/Main/Languages/Ruby/Tests/Scripts/utr/active_record_tests.rb;C1496258 File: active_record_tests.rb =================================================================== --- $/Dev10/feature/vs_langs01_s/Merlin/Main/Languages/Ruby/Tests/Scripts/utr/active_record_tests.rb;C1496258 (server) 2/6/2010 2:53 PM +++ Shelved Change: $/Dev10/feature/vs_langs01_s/Merlin/Main/Languages/Ruby/Tests/Scripts/utr/active_record_tests.rb;ar @@ -90,295 +90,47 @@ end def disable_unstable_tests - disable AggregationsTest, - # ActiveRecord::RecordNotFound: Couldn't find Customer with ID=1 - # d:/vs_langs01_s/Merlin/External.LCA_RESTRICTED/Languages/Ruby/ruby-1.8.6p368/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/base.rb:1586:in `find_one' - # d:/vs_langs01_s/Merlin/External.LCA_RESTRICTED/Languages/Ruby/ruby-1.8.6p368/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/base.rb:1569:in `find_from_ids' - # d:/vs_langs01_s/Merlin/External.LCA_RESTRICTED/Languages/Ruby/ruby-1.8.6p368/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/base.rb:616:in `find' - :test_nil_assignment_results_in_nil, - # exception expected but was - # Class: - # Message: <"Couldn't find Customer with ID=1"> - # ---Backtrace--- - # d:/vs_langs01_s/Merlin/External.LCA_RESTRICTED/Languages/Ruby/ruby-1.8.6p368/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/base.rb:1586:in `find_one' - # d:/vs_langs01_s/Merlin/External.LCA_RESTRICTED/Languages/Ruby/ruby-1.8.6p368/lib/ruby/gems/1.8 - :test_nil_raises_error_when_allow_nil_is_false, - # ActiveRecord::RecordNotFound: Couldn't find Customer with ID=1 - # d:/vs_langs01_s/Merlin/External.LCA_RESTRICTED/Languages/Ruby/ruby-1.8.6p368/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/base.rb:1586:in `find_one' - # d:/vs_langs01_s/Merlin/External.LCA_RESTRICTED/Languages/Ruby/ruby-1.8.6p368/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/base.rb:1569:in `find_from_ids' - # d:/vs_langs01_s/Merlin/External.LCA_RESTRICTED/Languages/Ruby/ruby-1.8.6p368/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/base.rb:616:in `find' - :test_reloaded_instance_refreshes_aggregations + end - disable AssociationCallbacksTest, - # ActiveRecord::RecordNotFound: Couldn't find Post with ID=2 - # d:/vs_langs01_s/Merlin/External.LCA_RESTRICTED/Languages/Ruby/ruby-1.8.6p368/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/base.rb:1586:in `find_one' - # d:/vs_langs01_s/Merlin/External.LCA_RESTRICTED/Languages/Ruby/ruby-1.8.6p368/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/base.rb:1569:in `find_from_ids' - # d:/vs_langs01_s/Merlin/External.LCA_RESTRICTED/Languages/Ruby/ruby-1.8.6p368/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/base.rb:616:in `find' - :test_adding_macro_callbacks, - # ActiveRecord::RecordNotFound: Couldn't find Post with ID=2 - # d:/vs_langs01_s/Merlin/External.LCA_RESTRICTED/Languages/Ruby/ruby-1.8.6p368/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/base.rb:1586:in `find_one' - # d:/vs_langs01_s/Merlin/External.LCA_RESTRICTED/Languages/Ruby/ruby-1.8.6p368/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/base.rb:1569:in `find_from_ids' - # d:/vs_langs01_s/Merlin/External.LCA_RESTRICTED/Languages/Ruby/ruby-1.8.6p368/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/base.rb:616:in `find' - :test_adding_with_proc_callbacks, - # ActiveRecord::RecordNotFound: Couldn't find Post with ID=2 - # d:/vs_langs01_s/Merlin/External.LCA_RESTRICTED/Languages/Ruby/ruby-1.8.6p368/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/base.rb:1586:in `find_one' - # d:/vs_langs01_s/Merlin/External.LCA_RESTRICTED/Languages/Ruby/ruby-1.8.6p368/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/base.rb:1569:in `find_from_ids' - # d:/vs_langs01_s/Merlin/External.LCA_RESTRICTED/Languages/Ruby/ruby-1.8.6p368/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/base.rb:616:in `find' - :test_dont_add_if_before_callback_raises_exception, - # ActiveRecord::RecordNotFound: Couldn't find Post with ID=2 - # d:/vs_langs01_s/Merlin/External.LCA_RESTRICTED/Languages/Ruby/ruby-1.8.6p368/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/base.rb:1586:in `find_one' - # d:/vs_langs01_s/Merlin/External.LCA_RESTRICTED/Languages/Ruby/ruby-1.8.6p368/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/base.rb:1569:in `find_from_ids' - # d:/vs_langs01_s/Merlin/External.LCA_RESTRICTED/Languages/Ruby/ruby-1.8.6p368/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/base.rb:616:in `find' - :test_has_and_belongs_to_many_add_callback, - # ActiveRecord::RecordNotFound: Couldn't find Post with ID=2 - # d:/vs_langs01_s/Merlin/External.LCA_RESTRICTED/Languages/Ruby/ruby-1.8.6p368/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/base.rb:1586:in `find_one' - # d:/vs_langs01_s/Merlin/External.LCA_RESTRICTED/Languages/Ruby/ruby-1.8.6p368/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/base.rb:1569:in `find_from_ids' - # base.rb:607:in `find' - :test_has_and_belongs_to_many_after_add_called_after_save, - # ActiveRecord::RecordNotFound: Couldn't find Post with ID=2 - # base.rb:1576:in `find_one' - # base.rb:1559:in `find_from_ids' - # base.rb:607:in `find' - :test_has_and_belongs_to_many_remove_callback, - # ActiveRecord::RecordNotFound: Couldn't find Post with ID=2 - # base.rb:1576:in `find_one' - # base.rb:1559:in `find_from_ids' - # base.rb:607:in `find' - :test_has_and_belongs_to_many_remove_callback_on_clear, - # ActiveRecord::RecordNotFound: Couldn't find Post with ID=2 - # base.rb:1576:in `find_one' - # base.rb:1559:in `find_from_ids' - # base.rb:607:in `find' - :test_has_many_and_belongs_to_many_callbacks_for_save_on_parent, - # ActiveRecord::RecordNotFound: Couldn't find Post with ID=2 - # base.rb:1576:in `find_one' - # base.rb:1559:in `find_from_ids' - # base.rb:607:in `find' - :test_has_many_callbacks_for_save_on_parent, - # ActiveRecord::RecordNotFound: Couldn't find Post with ID=2 - # base.rb:1576:in `find_one' - # base.rb:1559:in `find_from_ids' - # base.rb:607:in `find' - :test_has_many_callbacks_with_create, - # ActiveRecord::RecordNotFound: Couldn't find Post with ID=2 - # base.rb:1576:in `find_one' - # base.rb:1559:in `find_from_ids' - # base.rb:607:in `find' - :test_has_many_callbacks_with_create!, - # ActiveRecord::RecordNotFound: Couldn't find Post with ID=2 - # base.rb:1576:in `find_one' - # base.rb:1559:in `find_from_ids' - # base.rb:607:in `find' - :test_multiple_callbacks, - # ActiveRecord::RecordNotFound: Couldn't find Post with ID=2 - # base.rb:1576:in `find_one' - # base.rb:1559:in `find_from_ids' - # base.rb:607:in `find' - :test_removing_with_macro_callbacks, - # ActiveRecord::RecordNotFound: Couldn't find Post with ID=2 - # base.rb:1576:in `find_one' - # base.rb:1559:in `find_from_ids' - # base.rb:607:in `find' - :test_removing_with_proc_callbacks - - disable AssociationProxyTest, - # ActiveRecord::RecordNotFound: Couldn't find Author with ID=1 - # base.rb:1576:in `find_one' - # base.rb:1559:in `find_from_ids' - # base.rb:607:in `find' - :test_create_via_association_with_block, - # ActiveRecord::RecordNotFound: Couldn't find Author with ID=1 - # base.rb:1576:in `find_one' - # base.rb:1559:in `find_from_ids' - # base.rb:607:in `find' - :test_create_with_bang_via_association_with_block, - # ActiveRecord::RecordNotFound: Couldn't find Post with ID=1 - # base.rb:1576:in `find_one' - # base.rb:1559:in `find_from_ids' - # base.rb:607:in `find' - :test_proxy_accessors, - # ActiveRecord::RecordNotFound: Couldn't find Author with ID=1 - # base.rb:1576:in `find_one' - # base.rb:1559:in `find_from_ids' - # base.rb:607:in `find' - :test_push_has_many_through_does_not_load_target, - # ActiveRecord::RecordNotFound: Couldn't find Developer with ID=1 - # base.rb:1576:in `find_one' - # base.rb:1559:in `find_from_ids' - # base.rb:607:in `find' - :test_reload_returns_assocition, - # ActiveRecord::RecordNotFound: Couldn't find Developer with ID=1 - # base.rb:1576:in `find_one' - # base.rb:1559:in `find_from_ids' - # base.rb:607:in `find' - :test_save_on_parent_does_not_load_target - - disable AssociationsExtensionsTest, - # ActiveRecord::RecordNotFound: Couldn't find Project with ID=2 - # base.rb:1576:in `find_one' - # base.rb:1559:in `find_from_ids' - # base.rb:607:in `find' - :test_extension_on_habtm, - # ActiveRecord::RecordNotFound: Couldn't find Post with ID=1 - # base.rb:1576:in `find_one' - # base.rb:1559:in `find_from_ids' - # base.rb:607:in `find' - :test_extension_on_has_many, - # ActiveRecord::RecordNotFound: Couldn't find Project with ID=2 - # base.rb:1576:in `find_one' - # base.rb:1559:in `find_from_ids' - # base.rb:607:in `find' - :test_named_extension_and_block_on_habtm, - # ActiveRecord::RecordNotFound: Couldn't find Project with ID=2 - # base.rb:1576:in `find_one' - # base.rb:1559:in `find_from_ids' - # base.rb:607:in `find' - :test_named_extension_on_habtm, - # ActiveRecord::RecordNotFound: Couldn't find Project with ID=2 - # base.rb:1576:in `find_one' - # base.rb:1559:in `find_from_ids' - # base.rb:607:in `find' - :test_named_two_extensions_on_habtm - - disable DatabaseConnectedJsonEncodingTest, - # TypeError: There is already an open DataReader associated with this Command which must be closed first. - # System.Data:0:in `ValidateConnectionForExecute' - # System.Data:0:in `ValidateConnectionForExecute' - # System.Data:0:in `ValidateCommand' - :test_includes_fetches_second_level_associations, - # TypeError: There is already an open DataReader associated with this Command which must be closed first. - # System.Data:0:in `ValidateConnectionForExecute' - # System.Data:0:in `ValidateConnectionForExecute' - # System.Data:0:in `ValidateCommand' - :test_includes_uses_association_name - - disable EagerAssociationTest, - # <[]> expected but was - # <[#]>. - :test_eager_with_multiple_associations_with_same_table_has_many_and_habtm, - # ActiveRecord::RecordNotFound: Couldn't find Post with ID=1 - # d:/vs_langs01_s/Merlin/External.LCA_RESTRICTED/Languages/IronRuby/tests/RailsTests-2.3.5/activerecord/test/cases/associations/eager_test.rb:136:in `test_finding_with_includes_on_belongs_to_association_with_same_include_includes_only_once' - # base.rb:1576:in `find_one' - # base.rb:1559:in `find_from_ids' - :test_finding_with_includes_on_belongs_to_association_with_same_include_includes_only_once, - # ActiveRecord::UnknownAttributeError: unknown attribute: author - # base.rb:2742:in `attributes=' - # d:\vs_langs01_s\Merlin\Main\Languages\Ruby\Libraries.LCA_RESTRICTED\Extensions\IDictionaryOps.cs:196:in `each' - # base.rb:2734:in `attributes=' - :test_finding_with_includes_on_null_belongs_to_association_with_same_include_includes_only_once - - disable HasManyThroughAssociationsTest, - # is not true. - :test_associate_with_create, - # <1> expected but was - # <0>. - :test_associate_with_create_and_no_options - - end - def disable_tests - disable AdapterTest, - # TypeError: Invalid attempt to call Read when reader is closed. - # System.Data:0:in `ReadInternal' - # System.Data:0:in `Read' - # statement.rb:48:in `fetch' - :test_indexes disable AdapterTestSqlserver, - # TypeError: Invalid attempt to call Read when reader is closed. - # System.Data:0:in `ReadInternal' - # System.Data:0:in `Read' - # statement.rb:48:in `fetch' - "test: For DatabaseStatements altering isolation levels with a valid isolation level should allow #run_with_isolation_level to not take a block to set it. ", - # TypeError: Invalid attempt to call Read when reader is closed. - # System.Data:0:in `ReadInternal' - # System.Data:0:in `Read' - # statement.rb:48:in `fetch' - "test: For DatabaseStatements altering isolation levels with a valid isolation level should pass a read uncommitted isolation level test. ", - # TypeError: Invalid attempt to call Read when reader is closed. - # System.Data:0:in `ReadInternal' - # System.Data:0:in `Read' - # statement.rb:48:in `fetch' - "test: For DatabaseStatements altering isolation levels with a valid isolation level should return block value using #run_with_isolation_level. ", # <"#"> expected to be =~ # . "test: For abstract behavior should include version in inspect. ", - # ActiveRecord::StatementInvalid: TypeError: There is already an open DataReader associated with this Command which must be closed first.: DELETE FROM [sql_server_chronics] WHERE [datetime] = '2012-11-08 10:24:36.003' + # ActiveRecord::StatementInvalid: NoMethodError: undefined method `[]' for nil:NilClass: SELECT TOP 1 * FROM [sql_server_chronics] WHERE ([sql_server_chronics].[datetime] = '2012-11-08 10:24:36.003') # abstract_adapter.rb:201:in `log' # sqlserver_adapter.rb:839:in `raw_execute' - # sqlserver_adapter.rb:403:in `execute' + # sqlserver_adapter.rb:862:in `raw_select' "test: For chronic data types with a usec finding existing DB objects should find 003 millisecond in the DB with before and after casting. ", - # TypeError: There is already an open DataReader associated with this Command which must be closed first. - # System.Data:0:in `ValidateConnectionForExecute' - # System.Data:0:in `ValidateConnectionForExecute' - # System.Data:0:in `ValidateCommand' + # ActiveRecord::StatementInvalid: NoMethodError: undefined method `[]' for nil:NilClass: SELECT TOP 1 * FROM [sql_server_chronics] WHERE ([sql_server_chronics].[datetime] = '2012-11-08 10:24:36.123') + # abstract_adapter.rb:201:in `log' + # sqlserver_adapter.rb:839:in `raw_execute' + # sqlserver_adapter.rb:862:in `raw_select' "test: For chronic data types with a usec finding existing DB objects should find 123 millisecond in the DB with before and after casting. ", - # TypeError: There is already an open DataReader associated with this Command which must be closed first. - # System.Data:0:in `ValidateConnectionForExecute' - # System.Data:0:in `ValidateConnectionForExecute' - # System.Data:0:in `ValidateCommand' + # ActiveRecord::StatementInvalid: NoMethodError: undefined method `[]' for nil:NilClass: SELECT * FROM [sql_server_chronics] WHERE ([sql_server_chronics].[id] = 7) + # abstract_adapter.rb:201:in `log' + # sqlserver_adapter.rb:839:in `raw_execute' + # sqlserver_adapter.rb:862:in `raw_select' "test: For chronic data types with a usec saving new datetime objects should truncate 123456 usec to just 123 in the DB cast back to 123000. ", - # ActiveRecord::StatementInvalid: DBI::DatabaseError: The transaction operation cannot be performed because there are pending requests working on this transaction.: SAVE TRANSACTION active_record_1 + # ActiveRecord::StatementInvalid: NoMethodError: undefined method `[]' for nil:NilClass: SELECT * FROM [sql_server_chronics] WHERE ([sql_server_chronics].[id] = 10) # abstract_adapter.rb:201:in `log' - # sqlserver_adapter.rb:856:in `do_execute' - # d:/vs_langs01_s/Merlin/External.LCA_RESTRICTED/Languages/Ruby/ruby-1.8.6p368/lib/ruby/gems/1.8/gems/activerecord-sqlserver-adapter-2.3/lib/active_record/connection_adapters/sqlserver_adapter.rb:437:in `create_savepoint' - "test: For chronic data types with a usec saving new datetime objects should truncate 3001 usec to just 003 in the DB cast back to 3000. ", - # TypeError: Invalid attempt to call Read when reader is closed. - # System.Data:0:in `ReadInternal' - # System.Data:0:in `Read' - # statement.rb:48:in `fetch' - "test: For indexes should have indexes with descending order. ", - # Exception raised: - # Class: - # Message: <"Invalid attempt to call Read when reader is closed."> - # ---Backtrace--- - # System.Data:0:in `ReadInternal' - # System.Data:0:in `Read' - # statement.rb:48:in `fetch' - # statement.rb:207:in `fetch' - # statement.rb:236:in `each' - # d:\vs_langs01_s\Merlin\Main\Languages\Ruby\Libraries.LCA_RESTRICTED\Builtins\Enumerable.cs:35:in `Each' - # d:\vs_langs01_s\Merlin\Main\Languages\Rub - "test: For views that have more than 4000 chars for their defintion should cope with null returned for the defintion. ", - # TypeError: Invalid attempt to call Read when reader is closed. - # System.Data:0:in `ReadInternal' - # System.Data:0:in `Read' - # statement.rb:48:in `fetch' - "test: For views that have more than 4000 chars for their defintion should using alternate view defintion still be able to find real default. " + # sqlserver_adapter.rb:839:in `raw_execute' + # sqlserver_adapter.rb:862:in `raw_select' + "test: For chronic data types with a usec saving new datetime objects should truncate 3001 usec to just 003 in the DB cast back to 3000. " - disable AssociationProxyTest, - # is not true. - :test_push_does_not_load_target, - # is not true. - :test_push_followed_by_save_does_not_load_target, - # ActiveRecord::RecordNotFound: Couldn't find Developer with ID=150 - # base.rb:1576:in `find_one' - # base.rb:1559:in `find_from_ids' - # base.rb:607:in `find' - :test_save_on_parent_saves_children - disable AssociationsExtensionsTest, # ArgumentError: undefined class/module DeveloperProjectsAssociationExtensioo - # d:\vs_langs01_s\Merlin\Main\Languages\Ruby\Libraries.LCA_RESTRICTED\Builtins\Marshal.cs:689:in `ReadClassOrModule' - # d:\vs_langs01_s\Merlin\Main\Languages\Ruby\Libraries.LCA_RESTRICTED\Builtins\Marshal.cs:739:in `ReadExtended' - # d:\vs_langs01_s\Merlin\Main\Languages\Ruby\Libraries.LCA_RESTRICTED\Builtins\Marshal.cs:879:in `ReadAnObject' + # D:\vs_langs01_s\Merlin\Main\Languages\Ruby\Libraries.LCA_RESTRICTED\Builtins\Marshal.cs:718:in `ReadClassOrModule' + # D:\vs_langs01_s\Merlin\Main\Languages\Ruby\Libraries.LCA_RESTRICTED\Builtins\Marshal.cs:768:in `ReadExtended' + # D:\vs_langs01_s\Merlin\Main\Languages\Ruby\Libraries.LCA_RESTRICTED\Builtins\Marshal.cs:908:in `ReadAnObject' :test_marshalling_extensions, # ArgumentError: undefined class/module DeveloperProjectsAssociationExtensioo - # d:\vs_langs01_s\Merlin\Main\Languages\Ruby\Libraries.LCA_RESTRICTED\Builtins\Marshal.cs:689:in `ReadClassOrModule' - # d:\vs_langs01_s\Merlin\Main\Languages\Ruby\Libraries.LCA_RESTRICTED\Builtins\Marshal.cs:739:in `ReadExtended' - # d:\vs_langs01_s\Merlin\Main\Languages\Ruby\Libraries.LCA_RESTRICTED\Builtins\Marshal.cs:879:in `ReadAnObject' + # D:\vs_langs01_s\Merlin\Main\Languages\Ruby\Libraries.LCA_RESTRICTED\Builtins\Marshal.cs:718:in `ReadClassOrModule' + # D:\vs_langs01_s\Merlin\Main\Languages\Ruby\Libraries.LCA_RESTRICTED\Builtins\Marshal.cs:768:in `ReadExtended' + # D:\vs_langs01_s\Merlin\Main\Languages\Ruby\Libraries.LCA_RESTRICTED\Builtins\Marshal.cs:908:in `ReadAnObject' :test_marshalling_named_extensions - disable AssociationsJoinModelTest, - # ActiveRecord::RecordNotFound: Couldn't find Post with ID=170 - # base.rb:1576:in `find_one' - # base.rb:1559:in `find_from_ids' - # base.rb:607:in `find' - :test_associating_unsaved_records_with_has_many_through, - # <[9, 10, 120]> expected but was - # <[9, 10]>. - :test_has_many_through_goes_through_all_sti_classes - disable AssociationsTest, # NoMethodError: undefined method `flock' for # # d:/vs_langs01_s/Merlin/External.LCA_RESTRICTED/Languages/Ruby/redist-libs/ruby/1.8/pstore.rb:296:in `transaction' @@ -417,50 +169,9 @@ :test_array_to_xml_including_belongs_to_association, # is not true. :test_array_to_xml_including_has_one_association, - # Exception raised: - # Class: - # Message: <"Couldn't find Reply with ID=110"> - # ---Backtrace--- - # d:/vs_langs01_s/Merlin/External.LCA_RESTRICTED/Languages/IronRuby/tests/RailsTests-2.3.5/activerecord/test/cases/base_test.rb:1559:in `test_class_level_delete' - # base.rb:1576:in `find_one' - # base.rb:1559:in `find_from_ids' - # base.rb:607:in `find' - # assertions.rb:812:in `_wrap_assertion' - # d:/v - :test_class_level_delete, - # <"2010-01-24 01:50:35.000"> expected but was - # . + # <"2010-02-08 00:06:37.000"> expected but was + # . :test_coerced_test_read_attributes_before_type_cast_on_datetime, - # ActiveRecord::RecordNotFound: Couldn't find Topic with ID=140 - # d:/vs_langs01_s/Merlin/External.LCA_RESTRICTED/Languages/IronRuby/tests/RailsTests-2.3.5/activerecord/test/cases/base_test.rb:190:in `test_create' - # base.rb:1576:in `find_one' - # base.rb:1559:in `find_from_ids' - :test_create, - # ActiveRecord::RecordNotFound: Couldn't find Topic with ID=180 - # base.rb:1576:in `find_one' - # base.rb:1559:in `find_from_ids' - # base.rb:607:in `find' - :test_create_many_through_factory_with_block, - # ActiveRecord::RecordNotFound: Couldn't find Topic with ID=210 - # base.rb:1576:in `find_one' - # base.rb:1559:in `find_from_ids' - # base.rb:607:in `find' - :test_create_through_factory_with_block, - # ActiveRecord::RecordNotFound: Couldn't find Topic with ID=220 - # d:/vs_langs01_s/Merlin/External.LCA_RESTRICTED/Languages/IronRuby/tests/RailsTests-2.3.5/activerecord/test/cases/base_test.rb:773:in `test_default_values' - # base.rb:1576:in `find_one' - # base.rb:1559:in `find_from_ids' - :test_default_values, - # ActiveRecord::RecordNotFound: Couldn't find Topic with ID=230 - # d:/vs_langs01_s/Merlin/External.LCA_RESTRICTED/Languages/IronRuby/tests/RailsTests-2.3.5/activerecord/test/cases/base_test.rb:819:in `test_default_values_on_empty_strings' - # base.rb:1576:in `find_one' - # base.rb:1559:in `find_from_ids' - :test_default_values_on_empty_strings, - # ActiveRecord::RecordNotFound: Couldn't find Topic with ID=240 - # d:/vs_langs01_s/Merlin/External.LCA_RESTRICTED/Languages/IronRuby/tests/RailsTests-2.3.5/activerecord/test/cases/base_test.rb:156:in `test_hash_content' - # d:/vs_langs01_s/Merlin/External.LCA_RESTRICTED/Languages/Ruby/ruby-1.8.6p368/lib/ruby/gems/1.8/gems/test-unit-2.0.5/lib/test/unit/testsuite.rb:37:in `run' - # base.rb:1576:in `find_one' - :test_hash_content, # NoMethodError: undefined method `size' for nil:NilClass # d:/vs_langs01_s/Merlin/External.LCA_RESTRICTED/Languages/IronRuby/tests/RailsTests-2.3.5/activerecord/test/cases/base_test.rb:511:in `test_initialize_with_invalid_attribute' # d:/vs_langs01_s/Merlin/External.LCA_RESTRICTED/Languages/Ruby/ruby-1.8.6p368/lib/ruby/gems/1.8/gems/test-unit-2.0.5/lib/test/unit/testsuite.rb:37:in `run' @@ -471,107 +182,18 @@ #