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