Sha256: 27aba30d7353e5613b12be1acc75c7efbd391e85d02acf8997faf17b2a1036bc

Contents?: true

Size: 279 Bytes

Versions: 4

Compression:

Stored size: 279 Bytes

Contents

module Rspec
  class TransFormGenerator < ::Rails::Generators::NamedBase
    source_root File.expand_path('../templates', __FILE__)

    def create_spec_file
      template 'trans_form_spec.rb', File.join('spec/trans_forms', class_path, "#{file_name}_spec.rb")
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
trans_forms-0.2.2 lib/generators/rspec/trans_form_generator.rb
trans_forms-0.2.1 lib/generators/rspec/trans_form_generator.rb
trans_forms-0.2.0 lib/generators/rspec/trans_form_generator.rb
trans_forms-0.1.0 lib/generators/rspec/trans_form_generator.rb