123456789_123456789_123456789_123456789_123456789_

Module: RSpec::Rails::MinitestLifecycleAdapter Private

Do not use. This module is for internal use only.
Relationships & Source Files
Extension / Inclusion / Inheritance Descendants
Included In:
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, ActiveSupport::Concern
Defined in: rspec-rails/lib/rspec/rails/adapters.rb

Overview

Adapts example groups for Minitest::Test::LifecycleHooks

Instance Method Summary

DSL Calls

included

[ GitHub ]


69
70
71
72
73
74
75
76
77
78
# File 'rspec-rails/lib/rspec/rails/adapters.rb', line 69

included do |group|
  group.before { after_setup }
  group.after  { before_teardown }

  group.around do |example|
    before_setup
    example.run
    after_teardown
  end
end

Instance Method Details

#after_setup

[ GitHub ]

  
# File 'rspec-rails/lib/rspec/rails/adapters.rb', line 83

def after_setup
end

#after_teardown

[ GitHub ]

  
# File 'rspec-rails/lib/rspec/rails/adapters.rb', line 89

def after_teardown
end

#before_setup

[ GitHub ]

  
# File 'rspec-rails/lib/rspec/rails/adapters.rb', line 80

def before_setup
end

#before_teardown

[ GitHub ]

  
# File 'rspec-rails/lib/rspec/rails/adapters.rb', line 86

def before_teardown
end