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

Version Path
aslakhellesoy-cucumber-0.1.10 rails_generators/feature/feature_generator.rb
aslakhellesoy-cucumber-0.1.11 rails_generators/feature/feature_generator.rb
aslakhellesoy-cucumber-0.1.12 rails_generators/feature/feature_generator.rb
aslakhellesoy-cucumber-0.1.9 rails_generators/feature/feature_generator.rb
bts-cucumber-0.1.13.1 rails_generators/feature/feature_generator.rb
bts-cucumber-0.1.13.2 rails_generators/feature/feature_generator.rb
bts-cucumber-0.1.13.3 rails_generators/feature/feature_generator.rb
jeffrafter-cucumber-0.1.10 rails_generators/feature/feature_generator.rb
jeffrafter-cucumber-0.1.12 rails_generators/feature/feature_generator.rb
cucumber-0.1.12 rails_generators/feature/feature_generator.rb
cucumber-0.1.11 rails_generators/feature/feature_generator.rb
cucumber-0.1.10 rails_generators/feature/feature_generator.rb
cucumber-0.1.9 rails_generators/feature/feature_generator.rb