logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

convert_to_shoulda_syntax - converts a regular Test::Unit Ruby source file into one that uses shoulda

About

       This manual page was written by Antonio Terceiro <terceiro@softwarelivre.org> 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.

convert_to_shoulda_syntax                        September 2008                     convert_to_shoulda_syntax(1)

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.

Name

       convert_to_shoulda_syntax  -  converts  a  regular Test::Unit Ruby source file into one that uses shoulda
       syntax.

See Also

       /usr/share/doc/libshoulda-ruby/  as  installed by the libshoulda-ruby package for documentation of should
       itself.

Synopsis

convert_to_shoulda_syntaxnormal_test_file.rb

See Also