Airbore是一个RSpec驱动的API测试框架,灵感来自于frisby.js
示例代码:
require 'airbore'describe 'sample spec' do it 'should validate types' do get 'https://example.com/api/v1/simple_get' #jso api that returs { "ame" : "Joh Doe" } expect_jso_types({ame: :strig}) ed it 'should validate values' do get 'https://example.com/api/v1/simple_get' #jso api that returs { "ame" : "Joh Doe" } expect_jso({:ame => "Joh Doe"}) eded
评论