摘要: 最近又在做RESTful的应用开发,自动化测试使用的Ruby写脚本。运用BDD/TDD的开发思路,希望能先从使用Mock表达行为开始这里使用如Ruby的webmock框架 (gem install webmock)来尝试require "test/unit"require "shoulda"require "webmock"include WebMock::APIinclude Test::Unit::Assertionsclass RESTfulTest < Test::Unit::TestCase context " 阅读全文
posted @ 2013-05-07 10:05 卜海清 阅读(927) 评论(0) 推荐(0)