convert_to_should_syntax command not found

In this troubleshooting guide we learn how to fix convert_to_should_syntax command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

convert_to_should_syntax: command not found

or when using sudo you get the following error message

sudo: convert_to_should_syntax: command not found

Solutions to convert_to_should_syntax: command not found

How To Fix convert_to_should_syntax: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu convert_to_should_syntax is provided by ruby-shoulda-context package.

ruby-shoulda-context is:

Shoulda’s contexts make it easy to write understandable and maintainable tests for Test::Unit. It’s fully compatible with your existing tests in Test::Unit, and requires no retooling to use.

This package provides shoulda-context, a context framework for Test::Unit that was extracted from (and is used by) shoulda.

To fix this problem, we can install more using the command below.

sudo apt-get -y install ruby-shoulda-context

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install ruby-shoulda-context.

sudo apt -y install ruby-shoulda-context

Or if you have aptitude installed you can use the following command.

sudo aptitude install ruby-shoulda-context

Summary

In this tutorial we learn how to fix convert_to_should_syntax command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.