Sha256: 3ecb26097b8a9851efaa29e0c509bc7d1e8ea2d64397ba4b5734fa3716f633ed

Contents?: true

Size: 452 Bytes

Versions: 9

Compression:

Stored size: 452 Bytes

Contents

require 'rails/generators/base'
module AuthJwtGo
  module Generators

    class TestHelperGenerator < Rails::Generators::Base
      source_root File.expand_path('../templates', __FILE__)

      desc 'Creates a AuthJwt initializer'

      def test_initializer
        dir_name = 'spec/support'
        Dir.mkdir(dir_name) unless File.exists?(dir_name)
        copy_file 'request_helpers.rb', "#{dir_name}/request_helpers.rb"
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
auth_jwt_go-1.0.3 lib/generators/auth_jwt_go/test_helper_generator.rb
auth_jwt_go-1.0.2 lib/generators/auth_jwt_go/test_helper_generator.rb
auth_jwt_go-1.0.1 lib/generators/auth_jwt_go/test_helper_generator.rb
auth_jwt_go-1.0.0 lib/generators/auth_jwt_go/test_helper_generator.rb
auth_jwt_go-0.1.4 lib/generators/auth_jwt_go/test_helper_generator.rb
auth_jwt_go-0.1.3 lib/generators/auth_jwt_go/test_helper_generator.rb
auth_jwt_go-0.1.2 lib/generators/auth_jwt_go/test_helper_generator.rb
auth_jwt_go-0.1.1 lib/generators/auth_jwt_go/test_helper_generator.rb
auth_jwt_go-0.1.0 lib/generators/auth_jwt_go/test_helper_generator.rb