Sha256: d40815b3ec81222ef3df90a9f98d6ddc8363cf5c16a699256727a2f6e79c77f7
Contents?: true
Size: 651 Bytes
Versions: 16
Compression:
Stored size: 651 Bytes
Contents
require 'test_helper' class SqlImportTest < ActiveSupport::TestCase def setup clean_db end test "import" do assert_equal RailsDb::Database.tables, ["accounts", "comments", "contacts", "legacy_accounts", "payments", "projects", "projects_users", "users"] file = File.open("#{Rails.root}/../test_sql_#{RailsDb::Database.adapter.adapter_name}.sql") importer = RailsDb::SqlImport.new(file) importer.import assert importer.result.ok?, "Import successfull?" assert_equal RailsDb::Database.tables, ["accounts", "comments", "contacts", "legacy_accounts", "payments", "projects", "projects_users", 't', "users"] end end
Version data entries
16 entries across 16 versions & 1 rubygems