Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Restore the global state after the tests run

  • Loading branch information...
commit fb8c74956ebd399b6968064f0e314fcb89450eed 1 parent 2173991
@rafaelfranca rafaelfranca authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 test/generators/namespaced_generators_test.rb
View
5 test/generators/namespaced_generators_test.rb
@@ -9,6 +9,11 @@ def setup
Rails::Generators.namespace = TestApp
end
+ def teardown
+ super
+ Rails::Generators.namespace = nil
+ end
+
arguments %w(account)
tests Rails::Generators::ObserverGenerator
Please sign in to comment.
Something went wrong with that request. Please try again.