Sql server 这确保我们始终使用当前(最新)模式,并且所有数据库对象都已创建。集成测试使用NH模型类,只执行一些CRUD操作。 describe User do it { should have_column :name, :type => :string }

Sql server 这确保我们始终使用当前(最新)模式,并且所有数据库对象都已创建。集成测试使用NH模型类,只执行一些CRUD操作。 describe User do it { should have_column :name, :type => :string },sql-server,unit-testing,migration,migratordotnet,Sql Server,Unit Testing,Migration,Migratordotnet,这确保我们始终使用当前(最新)模式,并且所有数据库对象都已创建。集成测试使用NH模型类,只执行一些CRUD操作。 describe User do it { should have_column :name, :type => :string } it { should validate_presence_of :name} end

这确保我们始终使用当前(最新)模式,并且所有数据库对象都已创建。集成测试使用NH模型类,只执行一些CRUD操作。
describe User do
  it { should have_column :name, :type => :string }
  it { should validate_presence_of :name}       
end