Sha256: 71024fa3c74296ad16ff0fb9c1ca95099155a36381adda6304d0e97bbb0eb6e3

Contents?: true

Size: 352 Bytes

Versions: 205

Compression:

Stored size: 352 Bytes

Contents

# frozen_string_literal: true

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

Version data entries

205 entries across 191 versions & 15 rubygems

Version Path
railties-6.1.0 lib/rails/generators/testing/setup_and_teardown.rb
railties-6.1.0.rc2 lib/rails/generators/testing/setup_and_teardown.rb
railties-6.1.0.rc1 lib/rails/generators/testing/setup_and_teardown.rb
railties-6.0.3.4 lib/rails/generators/testing/setup_and_teardown.rb
railties-5.2.4.4 lib/rails/generators/testing/setup_and_teardown.rb
railties-6.0.3.3 lib/rails/generators/testing/setup_and_teardown.rb
railties-6.0.3.2 lib/rails/generators/testing/setup_and_teardown.rb
railties-6.0.3.1 lib/rails/generators/testing/setup_and_teardown.rb
railties-5.2.4.3 lib/rails/generators/testing/setup_and_teardown.rb
railties-6.0.3 lib/rails/generators/testing/setup_and_teardown.rb
railties-6.0.3.rc1 lib/rails/generators/testing/setup_and_teardown.rb
railties-6.0.2.2 lib/rails/generators/testing/setup_and_teardown.rb
railties-5.2.4.2 lib/rails/generators/testing/setup_and_teardown.rb
argon-1.3.1 vendor/bundle/ruby/2.7.0/gems/railties-6.0.2.1/lib/rails/generators/testing/setup_and_teardown.rb
symbolic_enum-1.1.5 vendor/bundle/ruby/2.7.0/gems/railties-6.0.2.1/lib/rails/generators/testing/setup_and_teardown.rb
railties-6.0.2.1 lib/rails/generators/testing/setup_and_teardown.rb
railties-5.2.4.1 lib/rails/generators/testing/setup_and_teardown.rb
railties-6.0.2 lib/rails/generators/testing/setup_and_teardown.rb
railties-6.0.2.rc2 lib/rails/generators/testing/setup_and_teardown.rb
zuora_connect_ui-0.10.0 vendor/ruby/2.6.0/gems/railties-6.0.1/lib/rails/generators/testing/setup_and_teardown.rb