This is the command convert_to_should_syntax that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator
PROGRAM:
NAME
convert_to_shoulda_syntax - converts a regular Test::Unit Ruby source file into one that
uses shoulda syntax.
SYNOPSIS
convert_to_shoulda_syntax normal_test_file.rb
DESCRIPTION
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.
Use convert_to_should_syntax online using onworks.net services