Sha256: b9bf0a732097417ca291c5b4b7470c07202a66661880967deb3cbfe01c1277a6

Contents?: true

Size: 321 Bytes

Versions: 184

Compression:

Stored size: 321 Bytes

Contents

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

184 entries across 179 versions & 13 rubygems

Version Path
railties-4.1.16 lib/rails/generators/testing/setup_and_teardown.rb
railties-4.1.16.rc1 lib/rails/generators/testing/setup_and_teardown.rb
railties-4.2.7.rc1 lib/rails/generators/testing/setup_and_teardown.rb
railties-5.0.0 lib/rails/generators/testing/setup_and_teardown.rb
railties-5.0.0.rc2 lib/rails/generators/testing/setup_and_teardown.rb
railties-5.0.0.racecar1 lib/rails/generators/testing/setup_and_teardown.rb
railties-5.0.0.rc1 lib/rails/generators/testing/setup_and_teardown.rb
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/railties-4.2.6/lib/rails/generators/testing/setup_and_teardown.rb
railties-5.0.0.beta4 lib/rails/generators/testing/setup_and_teardown.rb
railties-4.1.15 lib/rails/generators/testing/setup_and_teardown.rb
railties-4.2.6 lib/rails/generators/testing/setup_and_teardown.rb
railties-4.1.15.rc1 lib/rails/generators/testing/setup_and_teardown.rb
railties-4.2.6.rc1 lib/rails/generators/testing/setup_and_teardown.rb
railties-4.1.14.2 lib/rails/generators/testing/setup_and_teardown.rb
railties-4.2.5.2 lib/rails/generators/testing/setup_and_teardown.rb
railties-5.0.0.beta3 lib/rails/generators/testing/setup_and_teardown.rb
railties-5.0.0.beta2 lib/rails/generators/testing/setup_and_teardown.rb
activejob-lock-0.0.2 rails/railties/lib/rails/generators/testing/setup_and_teardown.rb
railties-5.0.0.beta1.1 lib/rails/generators/testing/setup_and_teardown.rb
railties-4.2.5.1 lib/rails/generators/testing/setup_and_teardown.rb