Stack Explorer

RSpec

Unit Testing framework Open Source

BDD framework for Ruby with expressive syntax

Official site

Supported languages:

ruby

Integrates with:

rails sinatra ruby

Pros and Cons

Ventajas

  • + Very expressive and readable DSL
  • + Built-in mocks and stubs
  • + Extensible matchers
  • + Perfect Rails integration
  • + Very active Ruby community

Desventajas

  • - DSL learning curve
  • - Can be slow in large suites
  • - Ruby magic can be confusing

Casos de Uso

  • Rails application testing
  • BDD in Ruby
  • Ruby API testing
  • Gem testing