rspec-documentation

0.0.11
Light Mode Dark Mode

Basic Examples

One-liners

This example uses a regular ```rspec code block.

The spec defines a subject, a simple comparison is made on its value to satisfy the test, and the value of subject is viewable on the Output tab.

Any RSpec test that defines a subject is valid, including one-liner syntax like this:

Markdown

```rspec
subject { 'my value' }

it { is_expected.to eql 'my value' }
```

Output

subject { 'my value' }

it { is_expected.to eql 'my value' }
"my value"

Documentation generated by rspec-documentation