How to Write a Rubinius Spec
Rubinius Specs
TODO: Imported from Lighthouse wiki. Needs review and update.
The Rubinius project generally uses TDD/BDD-style executable specifications to
drive development. The Rubinius
spec
directory is generally conceptually divided into two parts.
-
All the files under
spec/ruby
that describe the behavior of
MRI (Matz's Ruby Interpreter).
-
And all the other files under the
spec
directory that describe the behavior of Rubinius
With the release of the
RubySpec
project, the Rubinius git repository is now a hybrid repository containing
four different elements.
- The Rubinius code itself
-
A
copy
of the
MSpec code
at
$ROOT/mspec
-
A
copy
of the
RubySpec specs
at
$ROOT/spec/frozen
-
The RubySpec specs as a
clone
at
$ROOT/spec/ruby