Sha256: 7621c4e8edde4d36478032a7dfa7633e59dd52865efe45fccd45eb379cd28763

Contents?: true

Size: 436 Bytes

Versions: 5

Compression:

Stored size: 436 Bytes

Contents

require 'katapult/generator'

module Katapult
  module Generators
    class CucumberFeaturesGenerator < Katapult::Generator

      desc 'Generate Cucumber features for CRUD'
      source_root File.expand_path('../templates', __FILE__)


      def create_crud_feature
        template 'feature.feature', "features/#{model.name(:variables)}.feature"
      end

      private

      def model
        @element
      end

    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
katapult-0.3.0 lib/generators/katapult/cucumber_features/cucumber_features_generator.rb
katapult-0.2.0 lib/generators/katapult/cucumber_features/cucumber_features_generator.rb
katapult-0.1.2 lib/generators/katapult/cucumber_features/cucumber_features_generator.rb
katapult-0.1.1 lib/generators/katapult/cucumber_features/cucumber_features_generator.rb
katapult-0.1.0 lib/generators/katapult/cucumber_features/cucumber_features_generator.rb