Test-driven development and rspec.
测试驱动的开发和rspec。
In Listing 10, you see the RSpec form of an assertion.
在清单10中,出现了一个rspec形式的断言。
NetBeans also provides experimental support for Rspec.
NetBeans也提供了对Rspec的实验性支持。
Remarkable extends RSpec by providing macros and I18n support.
它通过提供宏与国际化的支持对RSpec进行了扩展。
Why undefined method in RSPEC for a call to method in an included module?
为什么在RSPEC未定义的方法在一个包含模块调用方法吗?
In many cases than using the existing Shared specification feature of RSpec.
在许多情况下,比起rspec已有的公共规范,使用子规范更加合适。
The default symbol is: each, meaning RSpec will call the set up block before each test.
默认的标志为:each,表示RSpec将在每次测试之前调用set u p代码块。
The RSpec tool is a Ruby package that lets you build a specification alongside your software.
RSpec工具是一个Ruby软件包,可以用它构建有关您的软件的规范。
Easy creation and use of DSLs in Ruby allowed the birth of many BDD frameworks, such as RSpec.
Ruby因其便于创建和使用DSL的特性,也带来了许多BDD框架的诞生,如rspec。
You can also specify :all, meaning RSpec will call the before block once before all of the tests.
您也可以指定 :all,表示RSpec 在执行所有测试之前只调用一次before代码块。
My problems with integration tests made the Story Framework, newly available in RSpec 1.1, look very interesting.
我在集成测试故事框架制作上的问题,最近的RSpec1.1已经可以实现了,这看上去很有趣。
Two Google SoC projects aim to fix this problem by creating RSpec specifications for Ruby. RSpec is described as.
有两个GoogleSoc项目打算解决这一问题,为Ruby创建RSpec规格。
For a while now I've been writing RSpec specifications to test Expectnation, rather than "traditional" Rails unit tests.
最近,我已经用RSpec规范来测试Expectnation,而放弃了Rails传统的单元测试。
This specification is actually a test that describes the behavior of your system. Here's the flow for development with RSpec
该规范实际上是一个描述系统行为的测试。
The RSpec descriptions go in a describe method, and you pass in the name of the class under test and a code block that has the actual spec.
describe方法提供了RSpec描述,您将传入测试类的名称和包含实际规范的代码块。
The RubySpec project aims to write a complete executable specification for the Ruby programming language that is syntax-compatible with RSpec.
RubySpec项目的目标是为Ruby编程语言提供一个完全可执行的规范,其语法兼容rspec。
Once you install the "rspec" Ruby Gem (use Tools | Ruby Gems), your Rails projects will contain a spec directory which can contain specification files.
一旦你通过RubyGem(使用Tools | RubyGems)安装了“rspec”,你的Rails项目中将会包含一个用来包括规格文件的spec目录。
However, RubySpec also emphasizes describing Ruby in prose as an essential element of the executable specification and is the reason we use RSpec-compatible syntax.
除此之外,它还强调用一种可执行的规范来描述Ruby,这也是我们使用RSpec兼容语法的原因。
Once you've done that, you can gradually change from Test::Unit to Rspec syntax. TestCases can be changed gradually to example groups; tests to examples; and assertions to expectations.
采用这一方式,您就可以逐渐的从Test::Unit过渡到Rspec格式,渐进的完成TestCases到examplegroups、tests到examples和assertions到expectations的转换。
Once you've done that, you can gradually change from Test::Unit to Rspec syntax. TestCases can be changed gradually to example groups; tests to examples; and assertions to expectations.
采用这一方式,您就可以逐渐的从Test::Unit过渡到Rspec格式,渐进的完成TestCases到examplegroups、tests到examples和assertions到expectations的转换。
应用推荐