0

我在 Ruby 中使用activerecord-nulldb-adapter来测试使用活动记录的情况,因为我不想连接到数据库。

但是在JRuby中,我不太清楚是否可以使用 activerecord-nulldb-adapter ?

如果不能使用,有什么可以代替 JRuby 中的 activerecord-nulldb-adapter 的。

4

1 回答 1

0

是的,您可以使用activerecord-nulldb-adapter,因为它是在纯 Ruby 中实现的,因此将在 JRuby 下运行:https ://github.com/nulldb/nulldb

于 2013-09-13T07:17:57.600 回答