Rails rspec 如何生成一个测试数据库


创建测试数据库 rake db:create RAILS_ENV=test

rake db:drop RAILS_ENV=test

load schema.rb

rake db:schema:load RAILS_ENV=test

创建测试数据库中的表 rake db:migrate db:test:prepare



Previous: XCode UITest Invalid escape sequence in literal
Next: Sotryboard或xib新添加控件如何本地化

Comments

comments powered by Disqus

© Copyright 2017 William Hu