module RSpec::Rails::SetupAndTeardownAdapter::ClassMethods
def setup(*methods)
Wraps `setup` calls from within Rails' testing framework in `before`
def setup(*methods) methods.each do |method| if method.to_s =~ /^setup_(with_controller|fixtures|controller_request_and_response)$/ prepend_before { __send__ method } else before { __send__ method } end end end
def teardown(*methods)
- Api: - private
def teardown(*methods) methods.each { |method| after { __send__ method } } end