Sha256: 84c9c0d936ad152723a61810c5e45dd114c389a643d7354a53b454fcdd573383
Contents?: true
Size: 467 Bytes
Versions: 13
Compression:
Stored size: 467 Bytes
Contents
# This generator bootstraps a Rails project for use with Cucumber class FeatureGenerator < Rails::Generator::NamedBase def manifest record do |m| m.directory 'features/step_definitions' m.template 'feature.erb', "features/manage_#{plural_name}.feature" m.template 'steps.erb', "features/step_definitions/#{singular_name}_steps.rb" end end protected def banner "Usage: #{$0} feature ModelName [field:type, field:type]" end end
Version data entries
13 entries across 13 versions & 4 rubygems