2008-08-04 15:44:41 +04:00
|
|
|
= RubySpec
|
|
|
|
|
2011-05-25 02: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 15:44:41 +04:00
|
|
|
|
2008-12-14 08:32:35 +03:00
|
|
|
== Directory structure
|
2008-08-04 15:44:41 +04:00
|
|
|
spec
|
|
|
|
+-- mspec driver library for executing the specification.
|
|
|
|
+-- rubyspec
|
2011-05-25 02:13:14 +04:00
|
|
|
+-- core specification for core libraries
|
|
|
|
| +-- array
|
2008-12-31 13:38:39 +03:00
|
|
|
| +-- bignum
|
2008-08-04 15:44:41 +04:00
|
|
|
| +-- ...
|
|
|
|
|
|
2008-12-31 13:38:39 +03:00
|
|
|
+-- fixtures example classes for writing specs
|
|
|
|
+-- language specification for Ruby language itself
|
|
|
|
+-- library specification for standard libraries
|
|
|
|
+-- addrev
|
2008-12-14 08:32:35 +03:00
|
|
|
+-- ...
|
2008-08-31 12:31:46 +04:00
|
|
|
|
2008-12-14 08:32:35 +03:00
|
|
|
== How to run
|
2008-08-31 12:31:46 +04:00
|
|
|
:make target
|
|
|
|
verifies all specs.
|
|
|
|
$ make test-rubyspec
|
|
|
|
:mspec command
|
|
|
|
verifies the specified spec.
|
2009-09-26 17:42:56 +04:00
|
|
|
$ mspec {language|core|library}
|
2008-12-31 13:38:39 +03:00
|
|
|
or
|
2008-08-31 12:31:46 +04:00
|
|
|
$ mspec spec/path/to/some_spec.rb
|