Testing Ruby on Rails

做~自己de王妃 提交于 2019-12-12 03:03:58

问题


Is there anywhere online where you can test Ruby on Rails?

Mainly testing getting data from models. Looking for something similar to http://jsfiddle.net/.


回答1:


If I understand you correctly, and I'd like to think I do, you want a website which you could hit with your app that would let you correctly build queries using your ActiveRecord models?

No, there isn't such a place, namely because your models are different from my models and there isn't any common code. If you need to test getting data from your models, you can use the testing libraries of which there are many (Test::Unit, RSpec, MiniTest/Spec, etc, etc).



来源:https://stackoverflow.com/questions/8839091/testing-ruby-on-rails

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!