rspec
-
RSpec also provides an excellent way to get you there .
RSpec还提供了优秀的实现方法。
-
Learn how RSpec can change the way you think about testing .
了解RSpec如何改变人们思考测试的方式。
-
In many cases than using the existing shared specification feature of RSpec .
在许多情况下,比起RSpec已有的公共规范,使用子规范更加合适。
-
One major new addition to the RSpec arsenal is a story runner .
RSpec1.1中新加入的主要特性之一是storyrunner。
-
The symbol determines how often RSpec should execute the code block .
标志确定RSpec执行代码块的频率。
-
NetBeans also provides experimental support for Rspec .
NetBeans也提供了对Rspec的实验性支持。
-
This will run the current spec file under rspec .
这样可以使用rspec来运行当前的规格文件。
-
The default symbol is : each , meaning RSpec will call the set up block before each test .
默认的标志为:each,表示RSpec将在每次测试之前调用setup代码块。
-
The RSpec tool is a Ruby package that lets you build a specification alongside your software .
RSpec工具是一个Ruby软件包,可以用它构建有关您的软件的规范。
-
Remarkable extends RSpec by providing macros and I18n support .
它通过提供宏与国际化的支持对RSpec进行了扩展。
-
You can also specify : all , meaning RSpec will call the before block once before all of the tests .
您也可以指定:all,表示RSpec在执行所有测试之前只调用一次before代码块。
-
RSpec is the behavior-driven framework that enhances test-driven development in Ruby .
RSpec是一种行为驱动框架,可增强Ruby中的测试驱动开发。
-
Easy creation and use of DSLs in Ruby allowed the birth of many BDD frameworks , such as RSpec .
Ruby因其便于创建和使用DSL的特性,也带来了许多BDD框架的诞生,如RSpec。
-
RSpec is a Behaviour Driven Development framework with tools to express user stories with executable scenarios and executable examples at the code level .
RSpec是一个行为驱动开发框架,其提供的工具可以允许在代码级别通过可执行场景及可执行示例来表达用例。
-
Test-driven development and RSpec
测试驱动的开发和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。
-
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描述,您将传入测试类的名称和包含实际规范的代码块。
-
Rather than preach on about the virtues of testing , I 'm going to walk you through a simple example of test-driven development ( TDD ) using RSpec .
有关测试的优点无需赘述,我将向您介绍一个简单的使用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(使用ToolsRubyGems)安装了“rspec”,你的Rails项目中将会包含一个用来包括规格文件的spec目录。