2008-08-04 07:44:41 -04:00
|
|
|
= RubySpec
|
|
|
|
|
|
|
|
RubySpec (http://rubyspec.org) provides the Ruby langauge specification in an
|
|
|
|
executable format. The make task `update-rubyspec' retrieves the specification
|
|
|
|
and put it into this directory.
|
|
|
|
|
2008-12-14 00:32:35 -05:00
|
|
|
== Directory structure
|
2008-08-04 07:44:41 -04:00
|
|
|
spec
|
|
|
|
+-- mspec driver library for executing the specification.
|
|
|
|
+-- rubyspec
|
2008-12-31 05:38:39 -05:00
|
|
|
+-- core specification for core libraries
|
|
|
|
| +-- array
|
|
|
|
| +-- bignum
|
2008-08-04 07:44:41 -04:00
|
|
|
| +-- ...
|
|
|
|
|
|
2008-12-31 05:38:39 -05:00
|
|
|
+-- fixtures example classes for writing specs
|
|
|
|
+-- language specification for Ruby language itself
|
|
|
|
+-- library specification for standard libraries
|
|
|
|
+-- addrev
|
2008-12-14 00:32:35 -05:00
|
|
|
+-- ...
|
2008-08-31 04:31:46 -04:00
|
|
|
|
2008-12-14 00:32:35 -05:00
|
|
|
== How to run
|
2008-08-31 04:31:46 -04:00
|
|
|
:make target
|
|
|
|
verifies all specs.
|
|
|
|
$ make test-rubyspec
|
|
|
|
:mspec command
|
|
|
|
verifies the specified spec.
|
2008-12-31 05:38:39 -05:00
|
|
|
$ mspec {language|core|language}
|
|
|
|
or
|
2008-08-31 04:31:46 -04:00
|
|
|
$ mspec spec/path/to/some_spec.rb
|