mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
18 lines
321 B
Ruby
18 lines
321 B
Ruby
module Rails
|
|
module Generators
|
|
module Testing
|
|
module SetupAndTeardown
|
|
def setup # :nodoc:
|
|
destination_root_is_set?
|
|
ensure_current_path
|
|
super
|
|
end
|
|
|
|
def teardown # :nodoc:
|
|
ensure_current_path
|
|
super
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|