Sha256: a260f4c5adce4072e57d67c021b96ee238b8c189da603571dfd790dc9c30a096

Contents?: true

Size: 412 Bytes

Versions: 6

Compression:

Stored size: 412 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/steps'
      m.template  'feature.erb', "features/manage_#{plural_name}.feature"
      m.template  'steps.erb', "features/steps/#{singular_name}_steps.rb"
    end
  end

protected

  def banner
    "Usage: #{$0} cucumber"
  end

end

Version data entries

6 entries across 6 versions & 3 rubygems

Version Path
aslakhellesoy-cucumber-0.1.3 generators/feature/feature_generator.rb
aslakhellesoy-cucumber-0.1.4 generators/feature/feature_generator.rb
elight-cucumber-0.1.9 rails_generators/feature/feature_generator.rb
cucumber-0.1.8 rails_generators/feature/feature_generator.rb
cucumber-0.1.6 generators/feature/feature_generator.rb
cucumber-0.1.7 generators/feature/feature_generator.rb