Sha256: cc249297b775de8fd4d6e86ebabfea6a8da1304bbb454998e61fae37e5997e3d
Contents?: true
Size: 567 Bytes
Versions: 5
Compression:
Stored size: 567 Bytes
Contents
require 'abstract_unit' require "#{File.dirname(__FILE__)}/../lib/active_record/schema_dumper" require 'stringio' if ActiveRecord::Base.connection.respond_to?(:tables) class SchemaDumperTest < Test::Unit::TestCase def test_schema_dump stream = StringIO.new ActiveRecord::SchemaDumper.dump(ActiveRecord::Base.connection, stream) output = stream.string assert_match %r{create_table "accounts"}, output assert_match %r{create_table "authors"}, output assert_no_match %r{create_table "schema_info"}, output end end end
Version data entries
5 entries across 5 versions & 1 rubygems