How To Install rubygem-shoulda-context on Fedora 36

In this tutorial we learn how to install rubygem-shoulda-context in Fedora 36. rubygem-shoulda-context is Context framework extracted from Shoulda

Introduction

In this tutorial we learn how to install rubygem-shoulda-context on Fedora 36.

What is rubygem-shoulda-context

Shoulda’s contexts make it easy to write understandable and maintainable tests for Test Test Refer to the shoulda gem if you want to know more about using shoulda with Rails or RSpec.

We can use yum or dnf to install rubygem-shoulda-context on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install rubygem-shoulda-context.

Install rubygem-shoulda-context on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install rubygem-shoulda-context using dnf by running the following command:

sudo dnf -y install rubygem-shoulda-context

Install rubygem-shoulda-context on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install rubygem-shoulda-context using yum by running the following command:

sudo yum -y install rubygem-shoulda-context

How To Uninstall rubygem-shoulda-context on Fedora 36

To uninstall only the rubygem-shoulda-context package we can use the following command:

sudo dnf remove rubygem-shoulda-context

rubygem-shoulda-context Package Contents on Fedora 36

/usr/bin/convert_to_should_syntax
/usr/share/gems/gems/shoulda-context-1.2.2
/usr/share/gems/gems/shoulda-context-1.2.2/MIT-LICENSE
/usr/share/gems/gems/shoulda-context-1.2.2/bin
/usr/share/gems/gems/shoulda-context-1.2.2/bin/convert_to_should_syntax
/usr/share/gems/gems/shoulda-context-1.2.2/lib
/usr/share/gems/gems/shoulda-context-1.2.2/lib/shoulda
/usr/share/gems/gems/shoulda-context-1.2.2/lib/shoulda-context.rb
/usr/share/gems/gems/shoulda-context-1.2.2/lib/shoulda/context
/usr/share/gems/gems/shoulda-context-1.2.2/lib/shoulda/context.rb
/usr/share/gems/gems/shoulda-context-1.2.2/lib/shoulda/context/assertions.rb
/usr/share/gems/gems/shoulda-context-1.2.2/lib/shoulda/context/autoload_macros.rb
/usr/share/gems/gems/shoulda-context-1.2.2/lib/shoulda/context/context.rb
/usr/share/gems/gems/shoulda-context-1.2.2/lib/shoulda/context/proc_extensions.rb
/usr/share/gems/gems/shoulda-context-1.2.2/lib/shoulda/context/tasks
/usr/share/gems/gems/shoulda-context-1.2.2/lib/shoulda/context/tasks.rb
/usr/share/gems/gems/shoulda-context-1.2.2/lib/shoulda/context/tasks/list_tests.rake
/usr/share/gems/gems/shoulda-context-1.2.2/lib/shoulda/context/tasks/yaml_to_shoulda.rake
/usr/share/gems/gems/shoulda-context-1.2.2/lib/shoulda/context/test_framework_detection.rb
/usr/share/gems/gems/shoulda-context-1.2.2/lib/shoulda/context/version.rb
/usr/share/gems/specifications/shoulda-context-1.2.2.gemspec

References

Summary

In this tutorial we learn how to install rubygem-shoulda-context on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).