Sha256: 71024fa3c74296ad16ff0fb9c1ca95099155a36381adda6304d0e97bbb0eb6e3

Contents?: true

Size: 352 Bytes

Versions: 203

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

203 entries across 190 versions & 14 rubygems

Version Path
minato_ruby_api_client-0.2.2 vendor/bundle/ruby/3.2.0/gems/railties-7.1.3.4/lib/rails/generators/testing/setup_and_teardown.rb
railties-8.0.1 lib/rails/generators/testing/setup_and_teardown.rb
railties-8.0.0.1 lib/rails/generators/testing/setup_and_teardown.rb
railties-7.2.2.1 lib/rails/generators/testing/setup_and_teardown.rb
railties-7.1.5.1 lib/rails/generators/testing/setup_and_teardown.rb
railties-7.0.8.7 lib/rails/generators/testing/setup_and_teardown.rb
railties-8.0.0 lib/rails/generators/testing/setup_and_teardown.rb
railties-7.2.2 lib/rails/generators/testing/setup_and_teardown.rb
railties-7.1.5 lib/rails/generators/testing/setup_and_teardown.rb
railties-8.0.0.rc2 lib/rails/generators/testing/setup_and_teardown.rb
railties-7.2.1.2 lib/rails/generators/testing/setup_and_teardown.rb
railties-7.1.4.2 lib/rails/generators/testing/setup_and_teardown.rb
railties-7.0.8.6 lib/rails/generators/testing/setup_and_teardown.rb
railties-6.1.7.10 lib/rails/generators/testing/setup_and_teardown.rb
railties-8.0.0.rc1 lib/rails/generators/testing/setup_and_teardown.rb
railties-6.1.7.9 lib/rails/generators/testing/setup_and_teardown.rb
railties-7.2.1.1 lib/rails/generators/testing/setup_and_teardown.rb
railties-7.1.4.1 lib/rails/generators/testing/setup_and_teardown.rb
railties-7.0.8.5 lib/rails/generators/testing/setup_and_teardown.rb
railties-8.0.0.beta1 lib/rails/generators/testing/setup_and_teardown.rb