Previous: Write a Ticket Up: Table of Contents Next: Fix a Failing Spec

How-To - Write a Ruby Spec

Make sure you have read:

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
  5. Open a pull request. If you are also implemented the method, feel free to do that together in a single pull request but make sure you have separate commits for the specs and code.
Previous: Write a Ticket Up: Table of Contents Next: Fix a Failing Spec

Tweet at @rubinius on Twitter or email community@rubini.us. Please report Rubinius issues to our issue tracker.