diff options
| author | Tom Black <[email protected]> | 2017-12-10 22:42:49 -0800 |
|---|---|---|
| committer | Tom Black <[email protected]> | 2017-12-10 22:42:49 -0800 |
| commit | 33aa28ca8d4af0fa3cf7aeae952b763eeb4002e4 (patch) | |
| tree | 87d9b20f2dd168d77d18d9933b5963d5a71ed7ff | |
| parent | 1ef9b9a1e629d82bd9b4b62bad86e0b94085434a (diff) | |
| download | ruby2d-33aa28ca8d4af0fa3cf7aeae952b763eeb4002e4.tar.gz ruby2d-33aa28ca8d4af0fa3cf7aeae952b763eeb4002e4.zip | |
Replace "MRI" with "int" in Rake tasks
| -rw-r--r-- | README.md | 4 | ||||
| -rw-r--r-- | Rakefile | 10 |
2 files changed, 7 insertions, 7 deletions
@@ -33,8 +33,8 @@ Finally, run `rake` to build and install the gem locally. Ruby 2D uses a combination of automated tests via [RSpec](http://rspec.info) and manual, interactive tests to verify the correctness of visual, audio, and input functionality. Build the gem and run all automated tests using the `rake` command. Build and run an interactive test in the [`test/`](test/) directory using `rake test:<environment> <name_of_test>`, for example: ```bash -# Run `test/testcard.rb` using the standard Ruby interpreter, MRI (or CRuby) -rake test:mri testcard +# Run `test/testcard.rb` using the standard Ruby interpreter, MRI (CRuby) +rake test:int testcard # Build `test/audio.rb` natively using MRuby and run rake test:native audio @@ -30,8 +30,8 @@ def run_cmd(cmd) system cmd end -def run_mri_test(file) - print_task "Running MRI test: #{file}.rb" +def run_int_test(file) + print_task "Running interpreted test: #{file}.rb" run_cmd "( cd test/ && ruby #{file}.rb )" end @@ -96,10 +96,10 @@ RSpec::Core::RakeTask.new do |t| end namespace :test do - desc "Run MRI test" - task :mri do + desc "Run interpreted test" + task :int do get_args - run_mri_test ARGV[1] + run_int_test ARGV[1] end desc "Run native test" |
