Sha256: 063327ec98389f04d315c0c129c3bfcce99936e391d95667090633f25072faf5
Contents?: true
Size: 429 Bytes
Versions: 2
Compression:
Stored size: 429 Bytes
Contents
require 'test_helper' class RunMigrationTest < ActiveSupport::TestCase test 'valid migration text' do migration = Ryakuzu::RunMigration.new(old_table: 'users', new_table: 'admin') text = 'rename_table :users, :admins' except = "class ChangeTableUser < ActiveRecord::Migration def change #{text} end end" assert_equal except, migration.text_migration('table', 'User', text) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ryakuzu-0.3.0 | test/services/run_migration_test.rb |
ryakuzu-0.2.6 | test/services/run_migration_test.rb |