Module: Rails::Generators::Testing::SetupAndTeardown

Included in:
Rails::Generators::TestCase
Defined in:
railties/lib/rails/generators/testing/setup_and_teardown.rb

Instance Method Summary collapse

Instance Method Details

#setupObject

:nodoc:



7
8
9
10
11
# File 'railties/lib/rails/generators/testing/setup_and_teardown.rb', line 7

def setup # :nodoc:
  destination_root_is_set?
  ensure_current_path
  super
end

#teardownObject

:nodoc:



13
14
15
16
# File 'railties/lib/rails/generators/testing/setup_and_teardown.rb', line 13

def teardown # :nodoc:
  ensure_current_path
  super
end