Fixrb

Fix

Fix guide

Version 1: from a first specification to the tests of a project.

This guide teaches version 1 of Fix, the Ruby testing framework, one step at a time, each page building on the one before. It assumes you know Ruby, not a test framework: Coming from RSpec is for those who come from it, and Questions gives short answers to what comes up with a first specification.

Each page shows files, and what running them writes. Both come from the repository of this site, where every example is run before a page is published: what you read is what Fix 1 does. One page, In a Rails application, shows files of another repository, fixrb/microblog, which run there, inside an application this site does not have. The outputs are those of Ruby 4.0; a message of Ruby itself, in an error, may read otherwise under another version.

Fix 1 needs Ruby 3.3 or later and fork(2): it is tested on Linux and macOS, and does not run on Windows or JRuby.

Other documents