2008-08-04 07:44:41 -04:00
|
|
|
= RubySpec
|
|
|
|
|
2011-05-24 18:13:14 -04:00
|
|
|
RubySpec (http://rubyspec.org) provides the annotation of the Ruby
|
|
|
|
implementation in an executable format. The make task
|
|
|
|
`update-rubyspec' retrieves the specification and puts it into this
|
|
|
|
directory.
|
2008-08-04 07:44:41 -04:00
|
|
|
|
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
|
2011-05-24 18:13:14 -04:00
|
|
|
+-- core specification for core libraries
|
|
|
|
| +-- array
|
2008-12-31 05:38:39 -05:00
|
|
|
| +-- 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.
|
2009-09-26 09:42:56 -04:00
|
|
|
$ mspec {language|core|library}
|
2008-12-31 05:38:39 -05:00
|
|
|
or
|
2008-08-31 04:31:46 -04:00
|
|
|
$ mspec spec/path/to/some_spec.rb
|