Skip to content

Commit 2d85ce4

Browse files
committed
Update documentation about specs for future Ruby versions
1 parent fe39954 commit 2d85ce4

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

doc/contributor/workflow.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -192,18 +192,18 @@ exception.
192192
When the spec is fixed the `untag` command will remove the tag and you can
193193
commit the fix and the removal of the tag.
194194

195-
## Running specs for Ruby 2.5 features
195+
## Running specs for Ruby 2.7 features
196196

197-
TruffleRuby currently targets Ruby 2.4. However, we welcome pull requests for
198-
Ruby 2.5 features as long as they don't conflict significantly with
199-
Ruby 2.4 semantics.
197+
TruffleRuby currently targets Ruby 2.6. However, we welcome pull requests for
198+
Ruby 2.7 features as long as they don't conflict significantly with
199+
Ruby 2.6 semantics.
200200

201-
It is possible to run specs for Ruby 2.5 features by setting
201+
It is possible to run specs for Ruby 2.7 features by setting
202202
`PRETEND_RUBY_VERSION`:
203203

204204
```bash
205-
# Integer#digits is introduced in 2.5
206-
$ PRETEND_RUBY_VERSION=2.5.0 jt test spec/ruby/core/integer/digits_spec.rb
205+
# File.absolute_path? is introduced in 2.7
206+
$ PRETEND_RUBY_VERSION=2.7.0 jt test spec/ruby/core/file/absolute_path_spec.rb
207207
```
208208

209209
This also works for `jt tag`/`jt untag`.

0 commit comments

Comments
 (0)