RSpec Matchers

Installation
SKILL.md

RSpec Matchers

Matchers are the building blocks of RSpec expectations. They define what you're testing and how values should compare.

Basic Syntax

expect(actual).to matcher(expected)
expect(actual).not_to matcher(expected)   # or to_not

Equality Matchers

eq - Value Equality

Tests value equality using ==:

expect(5).to eq(5)
Related skills

More from bastos/ruby-plugin-marketplace

Installs
GitHub Stars
2
First Seen