Move pages under tldr, lint run.sh, update docs

This commit is contained in:
2024-02-21 13:58:43 +02:00
parent 3d653cc7e6
commit 2c475fa62d
4806 changed files with 36 additions and 35 deletions

33
tldr/rspec Normal file
View File

@@ -0,0 +1,33 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# rspec
> Behavior-driven development testing framework written in Ruby to test Ruby code.
> More information: <https://rspec.info>.
- Initialize an .rspec configuration and a spec helper file:
`rspec --init`
- Run all tests:
`rspec`
- Run a specific directory of tests:
`rspec {{path/to/directory}}`
- Run one or more test files:
`rspec {{path/to/file1 path/to/file2 ...}}`
- Run a specific test in a file (e.g. the test starts on line 83):
`rspec {{path/to/file}}:{{83}}`
- Run specs with a specific seed:
`rspec --seed {{seed_number}}`