123456789_123456789_123456789_123456789_123456789_

Module: RSpec::Rails::FeatureCheck Private

Do not use. This module is for internal use only.

Class Attribute Summary

Class Method Summary

Class Attribute Details

.has_action_cable_testing?Boolean (readonly, mod_func)

[ GitHub ]

  
# File 'rspec-rails/lib/rspec/rails/feature_check.rb', line 26

def has_action_cable_testing?
  defined?(::ActionCable)
end

.has_action_mailbox?Boolean (readonly, mod_func)

[ GitHub ]

  
# File 'rspec-rails/lib/rspec/rails/feature_check.rb', line 42

def has_action_mailbox?
  defined?(::ActionMailbox)
end

.has_action_mailer?Boolean (readonly, mod_func)

[ GitHub ]

  
# File 'rspec-rails/lib/rspec/rails/feature_check.rb', line 18

def has_action_mailer?
  defined?(::ActionMailer)
end

.has_action_mailer_legacy_delivery_job?Boolean (readonly, mod_func)

[ GitHub ]

  
# File 'rspec-rails/lib/rspec/rails/feature_check.rb', line 38

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

.has_action_mailer_parameterized?Boolean (readonly, mod_func)

[ GitHub ]

  
# File 'rspec-rails/lib/rspec/rails/feature_check.rb', line 30

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

.has_action_mailer_preview?Boolean (readonly, mod_func)

[ GitHub ]

  
# File 'rspec-rails/lib/rspec/rails/feature_check.rb', line 22

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

.has_action_mailer_unified_delivery?Boolean (readonly, mod_func)

[ GitHub ]

  
# File 'rspec-rails/lib/rspec/rails/feature_check.rb', line 34

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

.has_active_job?Boolean (readonly, mod_func)

[ GitHub ]

  
# File 'rspec-rails/lib/rspec/rails/feature_check.rb', line 6

def has_active_job?
  defined?(::ActiveJob)
end

.has_active_record?Boolean (readonly, mod_func)

[ GitHub ]

  
# File 'rspec-rails/lib/rspec/rails/feature_check.rb', line 10

def has_active_record?
  defined?(::ActiveRecord)
end

.has_active_record_migration?Boolean (readonly, mod_func)

[ GitHub ]

  
# File 'rspec-rails/lib/rspec/rails/feature_check.rb', line 14

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

Class Method Details

.type_metatag(type) (mod_func)

[ GitHub ]

  
# File 'rspec-rails/lib/rspec/rails/feature_check.rb', line 46

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