module RSpec::Rails::FeatureCheck
@private
Public Instance Methods
has_action_cable_testing?()
click to toggle source
# File lib/rspec/rails/feature_check.rb, line 26 def has_action_cable_testing? defined?(::ActionCable) && ActionCable::VERSION::MAJOR >= 6 end
has_action_mailbox?()
click to toggle source
# File lib/rspec/rails/feature_check.rb, line 38 def has_action_mailbox? defined?(::ActionMailbox) end
has_action_mailer?()
click to toggle source
# File lib/rspec/rails/feature_check.rb, line 18 def has_action_mailer? defined?(::ActionMailer) end
has_action_mailer_parameterized?()
click to toggle source
# File lib/rspec/rails/feature_check.rb, line 30 def has_action_mailer_parameterized? has_action_mailer? && defined?(::ActionMailer::Parameterized) end
has_action_mailer_preview?()
click to toggle source
# File 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?()
click to toggle source
# File lib/rspec/rails/feature_check.rb, line 34 def has_action_mailer_unified_delivery? has_action_mailer? && defined?(::ActionMailer::MailDeliveryJob) end
has_active_job?()
click to toggle source
# File lib/rspec/rails/feature_check.rb, line 6 def has_active_job? defined?(::ActiveJob) end
has_active_record?()
click to toggle source
# File lib/rspec/rails/feature_check.rb, line 10 def has_active_record? defined?(::ActiveRecord) end
has_active_record_migration?()
click to toggle source
# File lib/rspec/rails/feature_check.rb, line 14 def has_active_record_migration? has_active_record? && defined?(::ActiveRecord::Migration) end
type_metatag(type)
click to toggle source
# File lib/rspec/rails/feature_check.rb, line 42 def type_metatag(type) "type: :#{type}" end