How to Fix a Failing Spec
Make sure you have read
Getting Started
and
The Rubinius Specs.
-
Run
rake spec
to ensure that all CI specs are passing
-
Run
bin/mspec spec/some/spec_file.rb
to confirm the spec fails
-
Edit a file somewhere in Rubinius (probably under the kernel directory)
-
Run
rake
to build your change
-
Run
bin/mspec spec/some/spec_file.rb
to see if your spec passes
-
Repeat until your spec passes
-
Run
rake spec:full
OR
bin/mspec ci -B full.mspec
to ensure there are no regressions
-
Change directory to Rubinius root if not already there
-
Run
git status, git add, git commit,
etc.
-
Run
git format-patch
-
Upload the patch in a ticket on the
Rubinius lighthouse
account
When your patch is accepted by the Rubinius project, you'll get a commit bit
for the Rubinius repository. You'll also get a bit for the RubySpec repository
(as long as you have a
github account
and let us know your github username).