зеркало из https://github.com/github/ruby.git
31 строка
870 B
Plaintext
31 строка
870 B
Plaintext
= 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.
|
|
|
|
== Directory structure
|
|
spec
|
|
+-- mspec driver library for executing the specification.
|
|
+-- rubyspec
|
|
+-- core specification for core libraries
|
|
| +-- array
|
|
| +-- bignum
|
|
| +-- ...
|
|
|
|
|
+-- fixtures example classes for writing specs
|
|
+-- language specification for Ruby language itself
|
|
+-- library specification for standard libraries
|
|
+-- addrev
|
|
+-- ...
|
|
|
|
== How to run
|
|
:make target
|
|
verifies all specs.
|
|
$ make test-rubyspec
|
|
:mspec command
|
|
verifies the specified spec.
|
|
$ mspec {language|core|language}
|
|
or
|
|
$ mspec spec/path/to/some_spec.rb
|