module RSpec::Rails::SetupAndTeardownAdapter::ClassMethods
def setup(*methods, &block)
Wraps `setup` calls from within Rails' testing framework in `before`
def setup(*methods, &block) 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 before(&block) if block end