How To Install rubygem-shoulda-matchers on Fedora 36

In this tutorial we learn how to install rubygem-shoulda-matchers in Fedora 36. rubygem-shoulda-matchers is Simple one-liner tests for common Rails functionality

Introduction

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

What is rubygem-shoulda-matchers

Shoulda Matchers provides RSpec- and Minitest-compatible one-liners to test common Rails functionality that, if written by hand, would be much longer, more complex, and error-prone.

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

Install rubygem-shoulda-matchers 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-matchers using dnf by running the following command:

sudo dnf -y install rubygem-shoulda-matchers

Install rubygem-shoulda-matchers 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-matchers using yum by running the following command:

sudo yum -y install rubygem-shoulda-matchers

How To Uninstall rubygem-shoulda-matchers on Fedora 36

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

sudo dnf remove rubygem-shoulda-matchers

rubygem-shoulda-matchers Package Contents on Fedora 36

/usr/share/gems/gems/shoulda-matchers-4.5.1
/usr/share/gems/gems/shoulda-matchers-4.5.1/LICENSE
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda-matchers.rb
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers.rb
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/action_controller
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/action_controller.rb
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/action_controller/callback_matcher.rb
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/action_controller/filter_param_matcher.rb
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/action_controller/flash_store.rb
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/action_controller/permit_matcher.rb
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/action_controller/redirect_to_matcher.rb
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/action_controller/render_template_matcher.rb
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/action_controller/render_with_layout_matcher.rb
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/action_controller/rescue_from_matcher.rb
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/action_controller/respond_with_matcher.rb
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/action_controller/route_matcher.rb
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/action_controller/route_params.rb
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/action_controller/session_store.rb
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/action_controller/set_flash_matcher.rb
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/action_controller/set_session_matcher.rb
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/action_controller/set_session_or_flash_matcher.rb
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/active_model
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/active_model.rb
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/active_model/allow_mass_assignment_of_matcher.rb
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/active_model/allow_value_matcher
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/active_model/allow_value_matcher.rb
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/active_model/allow_value_matcher/attribute_changed_value_error.rb
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/active_model/allow_value_matcher/attribute_does_not_exist_error.rb
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/active_model/allow_value_matcher/attribute_setter.rb
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/active_model/allow_value_matcher/attribute_setter_and_validator.rb
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/active_model/allow_value_matcher/attribute_setters.rb
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/active_model/allow_value_matcher/attribute_setters_and_validators.rb
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/active_model/allow_value_matcher/successful_check.rb
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/active_model/allow_value_matcher/successful_setting.rb
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/active_model/disallow_value_matcher.rb
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/active_model/errors.rb
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/active_model/have_secure_password_matcher.rb
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/active_model/helpers.rb
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/active_model/numericality_matchers
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/active_model/numericality_matchers.rb
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/active_model/numericality_matchers/comparison_matcher.rb
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/active_model/numericality_matchers/even_number_matcher.rb
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/active_model/numericality_matchers/numeric_type_matcher.rb
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/active_model/numericality_matchers/odd_number_matcher.rb
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/active_model/numericality_matchers/only_integer_matcher.rb
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/active_model/qualifiers
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/active_model/qualifiers.rb
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/active_model/qualifiers/allow_nil.rb
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/active_model/qualifiers/ignore_interference_by_writer.rb
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/active_model/qualifiers/ignoring_interference_by_writer.rb
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/active_model/validate_absence_of_matcher.rb
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/active_model/validate_acceptance_of_matcher.rb
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/active_model/validate_confirmation_of_matcher.rb
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/active_model/validate_exclusion_of_matcher.rb
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/active_model/validate_inclusion_of_matcher.rb
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/active_model/validate_length_of_matcher.rb
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/active_model/validate_numericality_of_matcher.rb
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/active_model/validate_presence_of_matcher.rb
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/active_model/validation_matcher
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/active_model/validation_matcher.rb
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/active_model/validation_matcher/build_description.rb
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/active_model/validation_message_finder.rb
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/active_model/validator.rb
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/active_record
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/active_record.rb
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/active_record/accept_nested_attributes_for_matcher.rb
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/active_record/association_matcher.rb
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/active_record/association_matchers
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/active_record/association_matchers.rb
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/active_record/association_matchers/counter_cache_matcher.rb
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/active_record/association_matchers/dependent_matcher.rb
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/active_record/association_matchers/inverse_of_matcher.rb
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/active_record/association_matchers/join_table_matcher.rb
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/active_record/association_matchers/model_reflection.rb
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/active_record/association_matchers/model_reflector.rb
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/active_record/association_matchers/option_verifier.rb
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/active_record/association_matchers/optional_matcher.rb
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/active_record/association_matchers/order_matcher.rb
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/active_record/association_matchers/required_matcher.rb
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/active_record/association_matchers/source_matcher.rb
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/active_record/association_matchers/through_matcher.rb
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/active_record/define_enum_for_matcher.rb
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/active_record/have_attached_matcher.rb
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/active_record/have_db_column_matcher.rb
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/active_record/have_db_index_matcher.rb
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/active_record/have_implicit_order_column.rb
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/active_record/have_readonly_attribute_matcher.rb
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/active_record/have_rich_text_matcher.rb
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/active_record/have_secure_token_matcher.rb
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/active_record/serialize_matcher.rb
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/active_record/uniqueness
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/active_record/uniqueness.rb
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/active_record/uniqueness/model.rb
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/active_record/uniqueness/namespace.rb
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/active_record/uniqueness/test_model_creator.rb
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/active_record/uniqueness/test_models.rb
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/active_record/validate_uniqueness_of_matcher.rb
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/configuration.rb
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/doublespeak
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/doublespeak.rb
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/doublespeak/double.rb
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/doublespeak/double_collection.rb
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/doublespeak/double_implementation_registry.rb
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/doublespeak/method_call.rb
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/doublespeak/object_double.rb
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/doublespeak/proxy_implementation.rb
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/doublespeak/stub_implementation.rb
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/doublespeak/world.rb
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/error.rb
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/independent
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/independent.rb
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/independent/delegate_method_matcher
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/independent/delegate_method_matcher.rb
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/independent/delegate_method_matcher/target_not_defined_error.rb
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/integrations
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/integrations.rb
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/integrations/configuration.rb
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/integrations/configuration_error.rb
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/integrations/inclusion.rb
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/integrations/libraries
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/integrations/libraries.rb
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/integrations/libraries/action_controller.rb
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/integrations/libraries/active_model.rb
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/integrations/libraries/active_record.rb
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/integrations/libraries/missing_library.rb
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/integrations/libraries/rails.rb
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/integrations/libraries/routing.rb
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/integrations/rails.rb
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/integrations/registry.rb
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/integrations/test_frameworks
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/integrations/test_frameworks.rb
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/integrations/test_frameworks/active_support_test_case.rb
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/integrations/test_frameworks/minitest_4.rb
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/integrations/test_frameworks/minitest_5.rb
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/integrations/test_frameworks/missing_test_framework.rb
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/integrations/test_frameworks/rspec.rb
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/integrations/test_frameworks/test_unit.rb
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/matcher_context.rb
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/rails_shim.rb
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/routing.rb
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/util
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/util.rb
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/util/word_wrap.rb
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/version.rb
/usr/share/gems/gems/shoulda-matchers-4.5.1/lib/shoulda/matchers/warn.rb
/usr/share/gems/specifications/shoulda-matchers-4.5.1.gemspec

References

Summary

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