match_json:像这样写JSON规范

时间:2021-04-28 11:24:53
【文件属性】:
文件名称:match_json:像这样写JSON规范
文件大小:46KB
文件格式:ZIP
更新时间:2021-04-28 11:24:53
Ruby MatchJSON 像老板一样,在RSpec,MiniTest或Cucumber中测试JSON。 我让孩子们玩的唯一匹配器-妈妈 入门 自人类诞生以来,世界各地的人们一直在寻找一种测试其JSON的工具。 然后发明了计算机。 然后出现了matchJSON。 从此以后,每个人都过着幸福的生活。 停止使用难以理解的正则表达式和外观怪异的测试来扭曲您的大脑。 旧的,令人讨厌的方式: it "returns the current pony" do get "/ponies/ #{ pony . id } " current_pony = JSON . parse ( response . body ) [ "pony" ] expect ( current_pony [ "cuteness" ] ) . to eq 90 expect ( current_pony
【文件预览】:
match_json-master
----.gitignore(150B)
----.travis.yml(86B)
----assets()
--------match.png(34KB)
----CHANGELOG.md(268B)
----LICENSE.txt(1KB)
----spec()
--------support()
--------spec_helper.rb(202B)
--------match_json()
----README.md(4KB)
----match_json.gemspec(1KB)
----lib()
--------match_json.rb(123B)
--------match_json()
----Gemfile(436B)
----Rakefile(242B)
----test()
--------match_json()
--------test_helper.rb(142B)

网友评论