docs/stdlib.md in rbs-3.1.3 vs docs/stdlib.md in rbs-3.2.0.pre.1
- old
+ new
@@ -8,11 +8,11 @@
### Writing tests
First, execute `generate:stdlib_test` rake task with a class name that you want to test.
-```bash
+```console
$ bundle exec rake 'generate:stdlib_test[String]'
Created: test/stdlib/String_test.rb
```
It generates `test/stdlib/[class_name]_test.rb`.
@@ -45,11 +45,10 @@
end
class StringTest < Test::Unit::TestCase
include TypeAssertions
- # library "pathname", "set", "securerandom" # Declare library signatures to load
testing "::String"
def test_gsub
assert_send_type "(Regexp, String) -> String",
"string", :gsub, /./, ""
@@ -81,9 +80,9 @@
### Running tests
You can run the test with:
-```
+```console
$ bundle exec rake stdlib_test # Run all tests
$ bundle exec ruby test/stdlib/String_test.rb # Run specific tests
```