View doh.rb
1 2 3 4 5 6 7 8 9
require 'coverage'
require 'json'
 
Coverage.start
 
require 'minitest'
 
class Minitest::Runnable
LOG = File.open('run_log.txt', 'w')
View heap_dump.rb
1 2 3 4 5 6 7 8 9
# 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'
View gist:6cdbb412a22715ce39ec
1 2 3 4 5 6 7 8 9 10
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
View fix.diff
1 2 3 4 5 6 7 8 9 10
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")
View lisp.rb
1 2 3 4 5 6 7 8 9
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)
}
View bug.rb
1 2 3 4 5 6 7 8 9 10
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
View out.txt
1 2 3 4 5 6 7 8 9 10
[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))
View rm_cache.patch
1 2 3 4 5 6 7 8 9 10
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 ||= {}
View assert_same_test.rb
1 2 3 4 5 6 7 8 9 10
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
View ( ͡° ͜ʖ ͡°) .txt
1 2 3 4 5 6 7 8 9 10
Top 50 tests by objects allocated
 
224624: EagerLoadPolyAssocsTest#test_include_query
212146: SchemaDumperDefaultsTest#test_schema_dump_defaults_with_universally_supported_types
172186: EagerAssociationTest#test_eager_with_multiple_associations_with_same_table_has_many_and_habtm
154367: AttributeMethodsTest#test_time_zone_aware_attribute_saved
107256: MigrationTest#test_migrator_versions
105861: MigrationTest#test_filtering_migrations
104094: MigrationTest#test_migration_without_transaction
98828: MigrationTest#test_add_table_with_decimals
Something went wrong with that request. Please try again.