postmodern / chruby

Changes the current Ruby
MIT License
2.85k stars 190 forks source link

Stub the test ruby instead of downloading a live-ruby #463

Closed postmodern closed 2 years ago

postmodern commented 2 years ago

The stub_bin_ruby branch which I have started now generates the test ruby's bin/ruby script to be a stub script that returns the expected output when the expected input is given. How or when the script should be generated, or if the bin/ruby script should be committed, are still unanswered questions.

Benefits

Disadvantages

postmodern commented 2 years ago

I am now leaning towards adding a test/configure script that will generate the test/root/opt/rubies/ directory and bin/ruby, as well as a ruby.sh helper. This can also be used to re-generate the test fixtures when we wish to change settings.

postmodern commented 2 years ago

Renamed test/setup to test/configure and store test configuration in test/config.sh. Now test/fixtures/root/opt/rubies are auto-re-generated on each test run.