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.
Edit a file under `spec/ruby/1.8/...`
Run `bin/mspec -tr spec/ruby/1.8/some/spec_file.rb`
Repeat until the spec passes on MatzRuby
Run `rake git:status` OR `cd spec/ruby; git status`
Change directory to `spec/ruby`
Run `git status`, `git add`, `git commit`, etc.
Run `git format-patch`
Upload the patch in a ticket on the
rubyspec.org
website
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