Methods

Class/Module Index [+]

Quicksearch

RSpec::Rails::SetupAndTeardownAdapter::ClassMethods

Public Instance Methods

setup(*methods) click to toggle source

@api private

Wraps `setup` calls from within Rails' testing framework in `before` hooks.

# File lib/rspec/rails/adapters.rb, line 14
def setup(*methods)
  methods.each {|method| before { send method } }
end
teardown(*methods) click to toggle source

@api private

Wraps `teardown` calls from within Rails' testing framework in `after` hooks.

# File lib/rspec/rails/adapters.rb, line 22
def teardown(*methods)
  methods.each {|method| after { send method } }
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.