Sha256: 05c302521387f165d54a0402098bc3b8d13675607c33acdd9817ee9f33d6ac02

Contents?: true

Size: 324 Bytes

Versions: 8

Compression:

Stored size: 324 Bytes

Contents

require 'generators/cells/base'

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

      def create_cell_spec_file
        template "cell_spec.erb", File.join("spec/cells/#{file_name}_cell_spec.rb")
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
rspec-cells-0.1.4 lib/generators/rspec/cell_generator.rb
rspec-cells-0.1.3 lib/generators/rspec/cell_generator.rb
rspec-cells-0.1.2 lib/generators/rspec/cell_generator.rb
rspec-cells-0.1.1 lib/generators/rspec/cell_generator.rb
rspec-cells-0.1.0 lib/generators/rspec/cell_generator.rb
rspec-cells-0.0.5 lib/generators/rspec/cell_generator.rb
rspec-cells-0.0.4 lib/generators/rspec/cell_generator.rb
rspec-cells-0.0.3 lib/generators/rspec/cell_generator.rb