Rubinius

Use Ruby™

How to Write a Ruby Spec

Make sure you have read Getting Started and The Rubinius Specs.

Then, follow these steps to write a spec for a Ruby method.

  1. Edit a file under `spec/ruby/1.8/...`
  2. Run `bin/mspec -tr spec/ruby/1.8/some/spec_file.rb`
  3. Repeat until the spec passes on MatzRuby
  4. Run `rake git:status` OR `cd spec/ruby; git status`
  5. Change directory to `spec/ruby`
  6. Run `git status`, `git add`, `git commit`, etc.
  7. Run `git format-patch`
  8. Upload the patch in a ticket on the rubyspec.org website
  9. You're done. When your patch is accepted, you will get a commit bit to the RubySpecs repository. However, while you're on a roll, why not add a patch for Rubinius as well. See How to Fix a failing spec