module RSpec::Rails::FeatureCheck

def has_action_cable_testing?

def has_action_cable_testing?
  defined?(::ActionCable)
end

def has_action_mailbox?

def has_action_mailbox?
  defined?(::ActionMailbox)
end

def has_action_mailer?

def has_action_mailer?
  defined?(::ActionMailer)
end

def has_action_mailer_legacy_delivery_job?

def has_action_mailer_legacy_delivery_job?
  defined?(ActionMailer::DeliveryJob)
end

def has_action_mailer_parameterized?

def has_action_mailer_parameterized?
  has_action_mailer? && defined?(::ActionMailer::Parameterized::DeliveryJob)
end

def has_action_mailer_preview?

def has_action_mailer_preview?
  has_action_mailer? && defined?(::ActionMailer::Preview)
end

def has_action_mailer_unified_delivery?

def has_action_mailer_unified_delivery?
  has_action_mailer? && defined?(::ActionMailer::MailDeliveryJob)
end

def has_active_job?

def has_active_job?
  defined?(::ActiveJob)
end

def has_active_record?

def has_active_record?
  defined?(::ActiveRecord)
end

def has_active_record_migration?

def has_active_record_migration?
  has_active_record? && defined?(::ActiveRecord::Migration)
end

def type_metatag(type)

def type_metatag(type)
  "type: :#{type}"
end