Sha256: 6b781b386b7dc7ac346cde6dcc90de6b051645fcb074274d3c0dd8c261daadb2

Contents?: true

Size: 357 Bytes

Versions: 4

Compression:

Stored size: 357 Bytes

Contents

require 'generators/cells/base'

module TestUnit
  module Generators
    class WidgetGenerator < ::Cells::Generators::Base
      source_root File.expand_path('../../templates', __FILE__)

      def create_test
        @states = actions
        template 'widget_test.rb', File.join('test/widgets/', "#{file_name}_widget_test.rb")
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
apotomo-1.1.2 lib/generators/test_unit/widget_generator.rb
apotomo-1.1.1 lib/generators/test_unit/widget_generator.rb
apotomo-1.1.0 lib/generators/test_unit/widget_generator.rb
apotomo-1.1.0.rc1 lib/generators/test_unit/widget_generator.rb