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