File: README_DEV.md

package info (click to toggle)
ruby-rspec-rails 8.0.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,804 kB
  • sloc: ruby: 10,881; sh: 198; makefile: 6
file content (39 lines) | stat: -rw-r--r-- 874 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# rspec-rails development

This documentation is meant for folks contributing the rspec-rails project
itself.

## Background

rspec-rails lives in a complicated ecosystem. We run our specs against multiple
Rails and Ruby versions.

### Default

By default, rspec-rails' test suite will run against the latest stable version
of Rails.

### Running Tests

```bash
bundle install --binstubs
bin/rake
```

### Errors

If you receive an error from `bundler` where constraints cannot be satisfied
for Rails, try removing `Gemfile.lock` (`rm Gemfile.lock`) and running `bundle
install --binstubs` again.

This can happen if the `Gemfile.lock` was generated for a different version of
Rails than you are trying to use now.

### Changing Rails Version

To run the specs against a different version of Rails, use the `thor` command:

```bash
bin/thor version:use 7.0.3.1
bin/rake
```