# Gemfile
gem "rdoc"
# setup.rb
#!/usr/bin/env ruby
require "bundler/setup"
Using postgresql | |
Run options: -n "/^(?:RelationTest#(?:test_null_relation_average|test_delegations_do_not_leak_to_other_classes)|TestDefaultAutosaveAssociationOnAHasManyAssociation#(?:test_assign_ids|test_build_many_via_block_before_save)|PostgresqlHstoreTest#(?:test_disable_enable_hstore|test_parse4)|DatabaseStatementsTest#(?:test_create_should_return_the_inserted_id|test_exec_insert|test_insert_should_return_the_inserted_id))$/" --seed 57362 | |
Run options: --seed 2259 -n "/^(?:PostgresqlHstoreTest#(?:test_comma)|ActiveRecord::InvertibleMigrationTest#(?:test_migrate_enable_and_disable_extension)|PostgresqlArrayTest#(?:test_schema_dump_with_shorthand))$/" | |
# Running: | |
..unknown OID 2248492: failed to recognize type of 'hstores'. It will be treated as String. | |
F | |
Finished in 1.074452s, 2.7921 runs/s, 7.4457 assertions/s. | |
1) Failure: |
--- a/activesupport/test/test_case_test.rb | |
+++ b/activesupport/test/test_case_test.rb | |
@@ -1,3 +1,6 @@ | |
+COMPONENT_ROOT = File.expand_path("../", __dir__) | |
+$: << File.expand_path("test", COMPONENT_ROOT) | |
+ |
# Gemfile
gem "rdoc"
# setup.rb
#!/usr/bin/env ruby
require "bundler/setup"
/* | |
Unobtrusive JavaScript | |
https://github.com/rails/rails/blob/master/actionview/app/assets/javascripts | |
Released under the MIT license | |
*/ | |
; | |
(function() { | |
(function() { |
target_module = "ActionDispatch" | |
filepath = Rails.root.join("doc", target_module.tableize).to_s | |
ignore_classes = [Kernel, BasicObject] | |
Graph("G", "digraph") do | |
classes = ObjectSpace.each_object(Class).select { |k| "#{k}".match /#{target_module}/ } | |
global layout:'fdp' | |
nodes style:'filled', colorscheme:'purd6' |
require "abstract_unit" | |
require "active_support/testing/method_call_assertions" | |
require "rails/command" | |
require "rails/commands/server/server_command" | |
class Rails::Engine::CommandsTasksTest < ActiveSupport::TestCase | |
include ActiveSupport::Testing::MethodCallAssertions | |
def setup | |
@destination_root = Dir.mktmpdir("bukkits") |
Rails.application.paths["config/routes.rb"].push(*Dir.glob("config/routes/*.rb")) |
require 'irb' | |
module A | |
def evaluate(context, statements, file = __FILE__, line = __LINE__) | |
loop do | |
if /([0-9]+),([0-9]+)/.match(statements) | |
statements.gsub!(/([0-9]+),([0-9]+)/, "\\1\\2") | |
else | |
break | |
end |
trace = TracePoint.new(:call) do |tp| | |
if tp.method_id == :before_filter || tp.method_id == :after_filter || tp.method_id == :prepend_before_filter | |
p [tp.lineno, tp.defined_class, tp.method_id, tp.event] | |
puts tp.send(:caller).join("\n") | |
end | |
end | |
trace.enable |