开发者

Rails functional testing without migrations

开发者 https://www.devze.com 2022-12-28 05:30 出处:网络
The name pretty much says it all. Does anyone know how to accomplish functional testing when you are not using migrations in Rails? I\'d be open to any advice or third party libraries (if there are an

The name pretty much says it all. Does anyone know how to accomplish functional testing when you are not using migrations in Rails? I'd be open to any advice or third party libraries (if there are any). I thought of c开发者_运维知识库reating my own plugin to address this but it seems like a pretty big task and would rather not do this unless necessary.

Thanks in advance.


http://github.com/jpignata/temping

Temping allows you to create arbitrary ActiveRecord models backed by a temporary SQL table for use in tests.


It appears that there is no "easy" way to do this. I'm looking into RSpec rails to see if it can be modified to not use migrations.

0

精彩评论

暂无评论...
验证码 换一张
取 消