Sha256: 64acb9a0c14679400e7ffde5f54d0b7241200a5b0ab73a1fe58f0e61d117d960

Contents?: true

Size: 452 Bytes

Versions: 1

Compression:

Stored size: 452 Bytes

Contents

module TestUnit
  module Generators
    class GrapeScaffoldGenerator < Rails::Generators::Base
      argument :vendor, required: true, desc: 'The API vendor name'
      argument :resource, required: true, desc: 'The resource API name'

      source_root File.expand_path("../templates", __FILE__)

      def create_spec_file
        template "resource_test.rb",
                 "test/api/#{vendor}/#{resource}_api_test.rb"
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
grape-api-generator-0.1.0 lib/generators/test_unit/grape_scaffold_generator.rb