--- title: Howto - Write a Ruby spec --- Howto - Write a Ruby Spec ========================= Make sure you have read: * [Getting Started](/getting_started) * [Specs](/dev/specs) Then, follow these steps to write a spec for a Ruby method: 1. Edit a file under `spec/ruby/...` 2. Run `bin/mspec -tr spec/ruby/some/spec_file.rb` 3. Repeat until the spec passes on MatzRuby 4. Commit your changes 7. Use `git format-patch` 8. Create a gist with your patch and link to it in a ticket on the issue tracker at http://github.com/evanphx/rubinius/issues.