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