vendor/ruby-signature/docs/sigs.md in steep-0.14.0 vs vendor/ruby-signature/docs/sigs.md in steep-0.15.0

- old
+ new

@@ -17,11 +17,11 @@ When you finish writing signature, you may want to test the signature. ruby-signature provides a feature to test your signature. ``` -$ RBS_TEST_TARGET='Foo::*' bundle exec ruby -r ruby/signature/test/setup test/foo_test.rb +$ RBS_TEST_TARGET='Foo::*' bundle exec ruby -r rbs/test/setup test/foo_test.rb ``` The test installs instrumentations to spy the method calls and check if arguments/return values are correct with respect to the type of the method in signature. If errors are reported by the test, you will fix the signature. You will be sure that you ship a correct signature finally. @@ -77,14 +77,14 @@ 1. Loading the testing library 2. Setting up the test through environment variables ### Loading the library -You need to require `ruby/signature/test/setup` for signature testing. +You need to require `rbs/test/setup` for signature testing. You can do it using `-r` option through command line argument or the `RUBYOPT` environment variable. ``` -$ ruby -r ruby/signature/test/setup run_tests.rb +$ ruby -r rbs/test/setup run_tests.rb $ RUBYOPT='-rruby/signature/test/setup' rake test ``` When you are using Bundler, you may need to require `bundler/setup` explicitly.