json_spec:在RSpec和Cucumber中轻松处理JSON 源码
json_spec 在RSpec和Cucumber中轻松处理JSON 规范 json_spec定义了五个新的RSpec匹配器: be_json_eql include_json have_json_path have_json_type have_json_size 可以在RSpec中使用新的匹配器,如下所示: describe User do let ( :user ) { User . create! ( first_name : "Steve" , last_name : "Richert" ) } context "#to_json" do it "includes names" do names = %({"first_name":"Steve","last_name":"Richert"}) user . to_json
文件列表
json_spec-master.zip
(预估有个49文件)
json_spec-master
.gitignore
41B
gemfiles
rspec3.gemfile
166B
rspec2.gemfile
166B
json_spec.gemspec
727B
.travis.yml
324B
CHANGELOG.md
312B
LICENSE.txt
1KB
spec
暂无评论