Questions tagged [rubyspec]

RubySpec is a project to write an executable specification for the Ruby Programming Language.

RubySpec is a project to write an executable specification for the Ruby Programming Language.

From the RubySpec Overview:

The RubySpec project aims to write a complete executable specification for the Ruby programming language that is syntax-compatible with RSpec. RSpec is essentially a DSL (domain-specific language) for describing the behavior of code. This project contains specs that describe Ruby language syntax, core library classes, and standard library classes.

3 questions
2
votes
3 answers

Do any languages have an equivalent of Ruby's RubySpec project?

Is Ruby the only language that has a test suite describing the language, or has the idea spread to other languages?
Andrew Grimm
  • 78,473
  • 57
  • 200
  • 338
2
votes
1 answer

How can I search RubySpec on GitHub?

I was trying to find the specifications for String#split in RubySpec on GitHub. (Turns out to be core/string/split_spec.rb.) If I try searching on ruby/rubyspec, I get told Sorry, forked repositories are not currently searchable. You could try…
Andrew Grimm
  • 78,473
  • 57
  • 200
  • 338
1
vote
2 answers

Is the frozen behavior on Fixnum a specified behavior?

Here was the behavior that somewhat surprised me: 1.9.3-p392 :001 > n = 1 => 1 1.9.3-p392 :002 > n.frozen? => false 1.9.3-p392 :003 > 1.freeze => 1 1.9.3-p392 :004 > n.frozen? => true I tried grepping through the RubySpec source code for frozen…
Mark Rushakoff
  • 249,864
  • 45
  • 407
  • 398