没有合适的资源?快使用搜索试试~ 我知道了~
rspec-the:轻松断言 let 块的内容
共14个文件
rb:5个
lock:1个
gitignore:1个
需积分: 9 0 下载量 158 浏览量
2021-06-18
06:47:35
上传
评论
收藏 6KB ZIP 举报
温馨提示
RSpec::The 轻松断言let块的内容 安装 将此行添加到应用程序的 Gemfile 中: gem 'rspec-the' 然后执行: bundle install 或者自己安装: gem install rspec-the 用法 使用rspec-its来测试给定的subject适用于简单的方法调用,但在更复杂的场景中需要过多的嵌套。 describe Array do let ( :array ) { [ 1 , 2 , 3 , 4 , 5 ] } subject { array } its ( :count ) { is_expected . to eq 5 } its ( :first ) { is_expected . to eq 1 } describe 'select #even?' do subject { array .
资源推荐
资源详情
资源评论
收起资源包目录
rspec-the-master.zip (14个子文件)
rspec-the-master
.gitignore 104B
.travis.yml 112B
.ruby-version 4B
LICENSE.txt 1KB
spec
support
counter.rb 94B
spec_helper.rb 92B
rspec
the_spec.rb 630B
README.md 2KB
rspec-the.gemspec 947B
lib
rspec-the.rb 20B
rspec
the.rb 341B
Gemfile 94B
Rakefile 28B
Gemfile.lock 453B
共 14 条
- 1
资源评论
司幽幽
- 粉丝: 30
- 资源: 4547
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功