Sha256: 4fda9972742d2e616228bdd7ed2c2e7cb8bdec12f8e5df94bfab4b78154403aa
Contents?: true
Size: 553 Bytes
Versions: 4
Compression:
Stored size: 553 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", "projects", "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", "projects", 't', "users"] end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
rails_db-0.5.1 | test/sql_import_test.rb |
rails_db-0.5 | test/sql_import_test.rb |
rails_db-0.4 | test/sql_import_test.rb |
rails_db-0.3 | test/sql_import_test.rb |