Sha256: 080e5f13231040ac6d5de608645d4b681882469a4e390e4c34733da4040c0387

Contents?: true

Size: 348 Bytes

Versions: 2

Compression:

Stored size: 348 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/", class_path, "#{file_name}_widget_spec.rb")
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rspec-apotomo-0.9.7 lib/generators/rspec/widget_generator.rb
rspec-apotomo-0.9.6 lib/generators/rspec/widget_generator.rb