Sha256: eecc5039a7cf28c8f9ecbeebb228881e52a79b9533d3211bed1204df93f41d56
Contents?: true
Size: 1.03 KB
Versions: 22
Compression:
Stored size: 1.03 KB
Contents
module RSpec module Rails # @private module FeatureCheck module_function def has_active_job? defined?(::ActiveJob) end def has_active_record? defined?(::ActiveRecord) end def has_active_record_migration? has_active_record? && defined?(::ActiveRecord::Migration) end def has_action_mailer? defined?(::ActionMailer) end def has_action_mailer_preview? has_action_mailer? && defined?(::ActionMailer::Preview) end def has_action_cable_testing? defined?(::ActionCable) && ActionCable::VERSION::MAJOR >= 6 end def has_action_mailer_parameterized? has_action_mailer? && defined?(::ActionMailer::Parameterized) end def has_action_mailer_unified_delivery? has_action_mailer? && defined?(::ActionMailer::MailDeliveryJob) end def has_action_mailbox? defined?(::ActionMailbox) end def type_metatag(type) "type: :#{type}" end end end end
Version data entries
22 entries across 20 versions & 4 rubygems