This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'minitest/autorun' | |
require 'allocation_tracer' | |
class MyTest < Minitest::Test | |
def setup | |
super | |
@a = Object.new | |
@b = Object.new | |
@start = -GC.stat(:total_allocated_object) | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/activerecord/lib/active_record/fixtures.rb b/activerecord/lib/active_record/fixtures.rb | |
index a85ba6b..a7502db 100644 | |
--- a/activerecord/lib/active_record/fixtures.rb | |
+++ b/activerecord/lib/active_record/fixtures.rb | |
@@ -945,16 +945,10 @@ module ActiveRecord | |
@fixture_cache = {} | |
@fixture_connections = [] | |
- @@already_loaded_fixtures ||= {} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[aaron@Aarons-MacBook-Pro usb (master)]$ csi -s tests/run.scm | |
Error: unbound variable: |\xcf\xfa\xed\xfe\x07\x00\x00\x01\x03\x00\x00\x00\x08\x00\x00\x00\x0f\x00\x00\x00\xf8\x05\x00\x00\x85\x00\x00\x00\x00\x00\x00\x00\x19\x00\x00\x00| | |
Call history: | |
<syntax> (##core#undefined) | |
<syntax> (##core#undefined) | |
<syntax> (##core#begin (##core#begin (##core#begin (##sys#require (quote test))) (import test)) (##core#undef...... | |
<syntax> (##core#begin (##core#begin (##sys#require (quote test))) (import test)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'active_record' | |
require 'logger' | |
ActiveRecord::Base.establish_connection adapter: "sqlite3", database: ":memory:" | |
ActiveRecord::Base.connection.instance_eval do | |
create_table(:parents) | |
create_table(:children) do |t| | |
t.references :parent |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cons = lambda { |x,y| lambda { |m| m.call x, y } } | |
car = lambda { |z| z.call lambda { |p, q| p } } | |
cdr = lambda { |z| z.call lambda { |p, q| q } } | |
each = lambda { |list, cb| | |
break unless list | |
cb.(car.(list)) | |
each.(cdr.(list), cb) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/test/namespaces/test_namespaces_in_merged_doc.rb b/test/namespaces/test_namespaces_in_merged_doc.rb | |
index fb7355d..d9b739c 100644 | |
--- a/test/namespaces/test_namespaces_in_merged_doc.rb | |
+++ b/test/namespaces/test_namespaces_in_merged_doc.rb | |
@@ -21,7 +21,10 @@ module Nokogiri | |
root = @doc1.at("defs") | |
toadd = @doc2.at("svg") | |
- root.add_child(toadd.children) | |
+ text_node = @doc2.at("text") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7) MiqSchedule with schedule infrastructure and valid run_ats valid schedules for db_backup calling run adhoc_db_backup should create no database backups | |
Failure/Error: @region.database_backups.count.should == 0 | |
ActiveRecord::StatementInvalid: | |
PGError: ERROR: column database_backups.miq_region_id does not exist | |
LINE 1: SELECT COUNT(*) FROM "database_backups" WHERE "database_bac... | |
^ | |
: SELECT COUNT(*) FROM "database_backups" WHERE "database_backups"."miq_region_id" = 594 | |
# /Users/aaron/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/bundler/gems/rails-cab310aeee22/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb:1346:in `async_exec' | |
# /Users/aaron/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/bundler/gems/rails-cab310aeee22/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb:1346:in `block in exec_no_cache' | |
# /Users/aaron/.rbenv/versions/2.0.0-p451/lib/ru |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Activate the gem you are reporting the issue against. | |
gem 'activerecord' | |
gem 'activesupport' | |
require 'active_support' | |
require 'active_support/core_ext/numeric/conversions' | |
require 'objspace' | |
require 'active_record' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'coverage' | |
require 'json' | |
Coverage.start | |
require 'minitest' | |
class Minitest::Runnable | |
LOG = File.open('run_log.txt', 'w') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'coverage' | |
require 'json' | |
# This must be run with this patch applied: | |
# https://bugs.ruby-lang.org/issues/10816 | |
Coverage.start | |
require 'minitest' |