Sha256: 4d3c082cf075c7082db298ed1f7e581dd53cd76f1cf4db676ae9d9e77884ac20
Contents?: true
Size: 422 Bytes
Versions: 3
Compression:
Stored size: 422 Bytes
Contents
require 'rails/generators' module Rails module Generators class BehaviorGenerator < NamedBase source_root File.expand_path('../template', __FILE__) def create_behavior_file template( 'behavior.rb', File.join( 'app/behaviors', class_path, "#{file_name}.rb" ) ) end hook_for :test_framework end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
dicer-0.3.0 | lib/generators/behavior/behavior_generator.rb |
dicer-0.2.0 | lib/generators/behavior/behavior_generator.rb |
dicer-0.1.0 | lib/generators/behavior/behavior_generator.rb |