Skip to content
This repository has been archived by the owner on Jul 5, 2023. It is now read-only.

Commit

Permalink
Add information about sorbet srb tc test cases (#80)
Browse files Browse the repository at this point in the history
Add path to the test file.
  • Loading branch information
Harry Doan committed Jul 8, 2019
1 parent 5bafcee commit 7c25812
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,10 @@ You can also switch to a version of Rails with `RAILS_VERSION`:

```sh
❯ RAILS_VERSION=4.2 ./spec/bin/run_spec.sh
❯ RAILS_VERSION=5.0 ./spec/bin/run_spec.sh
❯ RAILS_VERSION=5.1 ./spec/bin/run_spec.sh
❯ RAILS_VERSION=5.2 ./spec/bin/run_spec.sh
❯ RAILS_VERSION=6.0 ./spec/bin/run_spec.sh
```

#### Debugging
Expand All @@ -107,7 +109,7 @@ execution to stop, which will then start a debugger. For more, check out the

### Writing Tests

Tests are in the `_spec.rb` files in the [`spec/`](spec/) directory.
Tests are in the `_spec.rb` files in the [`spec/`](spec/) directory. Sorbet's `srb tc` test cases are in [`spec/support/rails_shared/sorbet_test_cases.rb`](spec/support/rails_shared/sorbet_test_cases.rb).

Rails apps are stored in [`spec/support/`](spec/support/). Code shared across Rails versions
(models, views, controllers) are in [`spec/support/rails_shared/`](spec/support/rails_shared/)
Expand Down

0 comments on commit 7c25812

Please sign in to comment.