json_spec:在RSpec和Cucumber中轻松处理JSON

时间:2021-02-25 19:34:34
【文件属性】:
文件名称:json_spec:在RSpec和Cucumber中轻松处理JSON
文件大小:29KB
文件格式:ZIP
更新时间:2021-02-25 19:34:34
Ruby 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
----.gitignore(41B)
----gemfiles()
--------rspec3.gemfile(166B)
--------rspec2.gemfile(166B)
----json_spec.gemspec(727B)
----.travis.yml(324B)
----CHANGELOG.md(312B)
----LICENSE.txt(1KB)
----spec()
--------support()
--------spec_helper.rb(393B)
--------json_spec()
----README.md(9KB)
----lib()
--------json_spec.rb(295B)
--------json_spec()
----Gemfile(132B)
----features()
--------inclusion.feature(3KB)
--------support()
--------step_definitions()
--------types.feature(695B)
--------paths.feature(2KB)
--------files.feature(2KB)
--------equivalence.feature(7KB)
--------memory.feature(5KB)
--------sizes.feature(701B)
----Rakefile(434B)

网友评论