Sha256: 78b8dfbb5da1f7de1db819de588848e9ef96a25a0d1ea6b33a5ba9cfbe6221f3

Contents?: true

Size: 332 Bytes

Versions: 5

Compression:

Stored size: 332 Bytes

Contents

require 'generators/cells/base'

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

      def create_cell_spec_file
        template "widget_spec.erb", File.join("spec/widgets/#{file_name}_widget_spec.rb")
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rspec-apotomo-0.9.5 lib/generators/rspec/widget_generator.rb
rspec-apotomo-0.9.4 lib/generators/rspec/widget_generator.rb
rspec-apotomo-0.9.3 lib/generators/rspec/widget_generator.rb
rspec-apotomo-0.9.2 lib/generators/rspec/widget_generator.rb
rspec-apotomo-0.9.1 lib/generators/rspec/widget_generator.rb