rspec-cheki:支持快照测试,启发Jest

时间:2021-05-01 09:44:27
【文件属性】:
文件名称:rspec-cheki:支持快照测试,启发Jest
文件大小:15KB
文件格式:ZIP
更新时间:2021-05-01 09:44:27
rspec snapshot-testing snapshot Ruby RSpec :: Cheki 受启发,支持快照测试。 expect ( response . body ) . to match_snapshot # or... expect ( response . body ) . to say_cheese 安装 将此行添加到您的应用程序的Gemfile中: gem 'rspec-cheki' 然后执行: $ bundle 或将其自己安装为: $ gem install rspec-cheki 用法 从您的spec_helper.rb需要rspec/cheki spec_helper.rb 。 require 'rspec/cheki' match_snapshot匹配器 expect ( response . body ) . to match_snapshot # And you can use `say_cheese` matc
【文件预览】:
rspec-cheki-master
----.gitignore(87B)
----README.md(2KB)
----.rubocop.yml(228B)
----bin()
--------console(336B)
--------setup(131B)
----Gemfile(96B)
----.rspec(31B)
----rspec-cheki.gemspec(1KB)
----CODE_OF_CONDUCT.md(3KB)
----spec()
--------rspec()
--------spec_helper.rb(140B)
----LICENSE.txt(1KB)
----.travis.yml(146B)
----lib()
--------rspec()
----Rakefile(117B)

网友评论