Sha256: 726a18e15a00c2ac3a6fe23edf04e083da642753b7c23a47dbd6b5f4b7ef3ab5
Contents?: true
Size: 570 Bytes
Versions: 10
Compression:
Stored size: 570 Bytes
Contents
require 'test_helper' require 'active_record_doctor/printers/io_printer' class ActiveRecordDoctor::Printers::IOPrinterTest < ActiveSupport::TestCase def test_print_unindexed_foreign_keys assert_equal(<<EOF, print_unindexed_foreign_keys({ "users" => ["profile_id", "account_id"], "account" => ["group_id"] })) account group_id users account_id profile_id EOF end private def print_unindexed_foreign_keys(argument) io = StringIO.new ActiveRecordDoctor::Printers::IOPrinter.new(io: io).print_unindexed_foreign_keys(argument) io.string end end
Version data entries
10 entries across 10 versions & 1 rubygems