RSpec test-double 框架 rspec-mocks

MIT
Ruby
跨平台
2013-12-16
叶秀兰

rspec-mocks 是一个 rspec 的 test-double 框架,支持 method stubs, fakes 和生成 test-doubls 和类似真的对象的预期消息。

加载中

评论(0)

暂无评论

暂无资讯

暂无问答

RSpec's documentation

## RSpec 的官网是 https://www.relishapp.com/rspec ## 从那里我们可以知道 RSpec 实际由 4 部分组成: * rspec-core * rspec-expectations * rspec-mocks * rspec-rails # 一、RSpec Expec...

2014/01/15 07:47
24
0
any_instance.stub

Stub on any instance of a class

2016/02/17 20:19
13
1
Rails RSpec Setup

RSpec is an awesome tool for testing Rails apps. It is a hugely popular BDD-oriented (Behavior Driven Development) testing framework in the Ruby community. It makes writing test...

02/07 22:52
0
0
RSpec Let Vs Before

In RSpec, there are two different ways to write DRY tests, by using before or let . Their purpose is to create variables that are common across tests. In this post, we will expl...

02/07 22:44
1
0
Rspec Let vs Before

In RSpec, there are two different ways to write DRY tests, by using before or let. Their purpose is to create variables that are common across tests. In this post, we will explo...

02/07 17:06
1
0
RSPEC::RAILS介绍(翻译)

想有一下RSPec来做BDD开发,地发现中文资料太少了,无耐只能自己去主页上看资料,做为爱国者,俺的英文真烂得不成,不过翻完了,发出来大家乐一乐吧。 Spec::rails ------------------------...

2010/12/01 01:19
2K
0
RSpec on rails 手记

环境:ruby 1.8.7 rails 2.3.5 1. 安装msysgit并将D:\dev\msysgit\msysgit\bin给环境变量,否则以下的git插件不能安装 2. 安装haml: 1) gem install haml 2) config.gem "haml" ->config/e...

2010/12/05 14:28
867
0
RSpec安装

RSpec安装

2015/04/07 16:26
32
0
行为驱动设计(rspec)

行为驱动设计(rspec) 原文:Behavior Driven Design (并非公开版权文档) 你可能已经注意到,验证模对象改变了你在单元测试中执行的那类测试的本质。传统的单元测试中,通过断言(Assertion)...

2010/03/13 14:56
1K
0

没有更多内容

加载失败,请刷新页面

返回顶部
顶部