convert_to_should_syntax(1)

convert_to_should_syntax1

Converts a regular test::unit ruby source file into one that uses shoulda syntax.

Usage

convert_to_shoulda_syntax normal_test_file.rb

Overview

converts a unit test file using regular Test::Unit syntax to one using the nicer shoulda syntax, i.e. it will convert an existing test file with names like

def test_should_do_stuff

...

end

to one using the new syntax:

should "be super cool" do

...

end

A copy of the old file will be left under /tmp/ in case this script just seriously screws up.

About

This manual page was written by Antonio Terceiro <[email protected]> for the Debian GNU/Linux system, but may be used by others. It was based on convert_to_shoulda_syntax's help output, i.e., when called without proper arguments, and with the help of help2man.

Releases

8 releases since Debian 6.0 (Squeeze); the text changed 1 time.

  1. 6.0
  2. 7–13

From ruby-shoulda-context 2.0.0-4 in Debian 13 (Trixie). Parsed by carta from the page's man source.