Module: RSpec::Rails::SetupAndTeardownAdapter::ClassMethods

Defined in:
lib/rspec/rails/adapters.rb

Instance Method Summary collapse

Instance Method Details

#setup(*methods) ⇒ Object


10
11
12
# File 'lib/rspec/rails/adapters.rb', line 10

def setup(*methods)
  methods.each {|method| before { send method } }
end

#teardown(*methods) ⇒ Object


14
15
16
# File 'lib/rspec/rails/adapters.rb', line 14

def teardown(*methods)
  methods.each {|method| after { send method } }
end