What does RSpec test?

What does RSpec test?

RSpec is a testing tool for Ruby, created for behavior-driven development (BDD). It is the most frequently used testing library for Ruby in production applications. Even though it has a very rich and powerful DSL (domain-specific language), at its core it is a simple tool which you can start using rather quickly.

What does RSpec stand for?

RSPEC

Acronym Definition
RSPEC Request Specification
RSPEC Reduce Swimming Pool Energy Costs (program; US Department of Energy)
RSPEC Requirement Specification

What is RSpec code?

RSpec is a computer domain-specific language (DSL) (particular application domain) testing tool written in the programming language Ruby to test Ruby code. It is a behavior-driven development (BDD) framework which is extensively used in production applications.

Is RSpec a gem?

Description. rspec is a meta-gem, which depends on the rspec-core, rspec-expectations and rspec-mocks gems. Each of these can be installed separately and loaded in isolation using require .

Can you use RSpec without Rails?

# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`. # file to always be loaded, without a need to explicitly require it in any files. # the additional setup, and require it from the spec files that actually need it.

How do I add gems to RSpec?

You can generate your new gem with rspec by running bundler gem –test=rspec my_gem .

What is BDD and TDD +rails?

As a rule, TDD is used to write tests by programmers for programmers, and BDD tests can be written not only by software developers, but also by managers, testers and even by the customer. BDD is a ready-to-use application documentation that allows you to describe software product scenarios in natural language.